Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-06-24 09:55:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-24 09:55:05 +0400
commita5b78bb6bdebe798865e8d6bcb958708d49c73b3 (patch)
treeaa6a417ac7651ef40d6f7173b3c6b01a50dc746a /build_files/scons/config
parent86bebb338013fd9ac4e39c3f3a8665b1d3b0ed53 (diff)
replace use of 'a.find(b) != -1' --> 'b in a'
Diffstat (limited to 'build_files/scons/config')
-rw-r--r--build_files/scons/config/win32-vc-config.py9
-rw-r--r--build_files/scons/config/win64-vc-config.py9
2 files changed, 8 insertions, 10 deletions
diff --git a/build_files/scons/config/win32-vc-config.py b/build_files/scons/config/win32-vc-config.py
index 12ca16d480a..f1597a66538 100644
--- a/build_files/scons/config/win32-vc-config.py
+++ b/build_files/scons/config/win32-vc-config.py
@@ -3,13 +3,12 @@ import subprocess
CL_OUT = subprocess.Popen(["cl.exe"],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
CL_STDOUT, CL_STDERR = CL_OUT.communicate()
-if CL_STDERR.find("17.00.") == -1:
- VC_VERSION = '9.0'
- LCGDIR = '#../lib/windows'
-
-else:
+if "17.00." in CL_STDERR:
VC_VERSION = '11.0'
LCGDIR = '#../lib/windows_vc11'
+else:
+ VC_VERSION = '9.0'
+ LCGDIR = '#../lib/windows'
LIBDIR = '${LCGDIR}'
diff --git a/build_files/scons/config/win64-vc-config.py b/build_files/scons/config/win64-vc-config.py
index ab1c2a87d93..a13f417c36c 100644
--- a/build_files/scons/config/win64-vc-config.py
+++ b/build_files/scons/config/win64-vc-config.py
@@ -3,13 +3,12 @@ import subprocess
CL_OUT = subprocess.Popen(["cl.exe"],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
CL_STDOUT, CL_STDERR = CL_OUT.communicate()
-if CL_STDERR.find("17.00.") == -1:
- VC_VERSION = '9.0'
- LCGDIR = '#../lib/win64'
-
-else:
+if "17.00." in CL_STDERR:
VC_VERSION = '11.0'
LCGDIR = '#../lib/win64_vc11'
+else:
+ VC_VERSION = '9.0'
+ LCGDIR = '#../lib/win64'
LIBDIR = '${LCGDIR}'