summaryrefslogtreecommitdiffstats
path: root/test/SWIG/subdir.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2018-10-16 15:39:13 (GMT)
committerMats Wichmann <mats@linux.com>2018-10-16 15:39:44 (GMT)
commit4ff8514b2cfffeda032b657e1d59c5ec7988fe88 (patch)
tree70d673a0d9dc6f8a93d2dc59e2a277c17fa0ea7b /test/SWIG/subdir.py
parente422f8fa002b9cbe6fb5785c301cfc63d8843a99 (diff)
downloadSCons-4ff8514b2cfffeda032b657e1d59c5ec7988fe88.zip
SCons-4ff8514b2cfffeda032b657e1d59c5ec7988fe88.tar.gz
SCons-4ff8514b2cfffeda032b657e1d59c5ec7988fe88.tar.bz2
Additional fixes for SWIG tests
Two tests were missing the raw-string marker when defining the Python include path. TestSCons:get_platform_python_info needed some rework for Windows, it was failing to find the python library if running in a virtual environment. Also removed a try-block; sys.version_info is standard since Python 2.0 and so does not need wrapping. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/SWIG/subdir.py')
-rw-r--r--test/SWIG/subdir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SWIG/subdir.py b/test/SWIG/subdir.py
index 6951753..9336f19 100644
--- a/test/SWIG/subdir.py
+++ b/test/SWIG/subdir.py
@@ -63,7 +63,7 @@ else:
test.write('SConstruct', """
env = Environment(SWIGFLAGS='-python',
%(swig_arch_var)s
- CPPPATH=['%(python_include)s/'],
+ CPPPATH=[r'%(python_include)s/'],
LDMODULEPREFIX='%(ldmodule_prefix)s',
LDMODULESUFFIX='%(_dll)s',
SWIG=r'%(swig)s',