mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Fixes issue # 1554:
Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
This commit is contained in:
@@ -224,7 +224,7 @@ class MSVCProjectBuilder(Builder):
|
||||
if os.environ.has_key(key):
|
||||
self.programDir = os.path.join(os.environ[key], "..", "IDE")
|
||||
|
||||
if self.programDir == None:
|
||||
if self.programDir is None:
|
||||
for version in ["9.0", "8", ".NET 2003"]:
|
||||
msvcDir = "C:\\Program Files\\Microsoft Visual Studio %s\\Common7\\IDE" % version
|
||||
if os.path.exists(msvcDir):
|
||||
|
||||
Reference in New Issue
Block a user