Commits

Stefan Rusek  committed 09da9ad

on some non-windows platforms plat_name is not defined

  • Participants
  • Parent commits 09c94e9

Comments (0)

Files changed (1)

         build.run(self)
 
     def is_win_platform(self):
-        return self.plat_name and (self.plat_name[:3] == 'win')
+        return hasattr(self, "plat_name") and (self.plat_name[:3] == 'win')
 
     sub_commands = build.sub_commands + [('build_winext', is_win_platform)]