diff options
author | William Deegan <bill@baddogconsulting.com> | 2018-07-10 18:54:27 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2018-07-10 18:54:27 (GMT) |
commit | 8c9aa75f2069bd3c0d2369c404899d457e391d0c (patch) | |
tree | e5278384e41c4e5bae3ef4ac42041afd0557ff48 /testing | |
parent | d09bfdc164e27f59ce4dd46b216726e0bd8d5a24 (diff) | |
download | SCons-8c9aa75f2069bd3c0d2369c404899d457e391d0c.zip SCons-8c9aa75f2069bd3c0d2369c404899d457e391d0c.tar.gz SCons-8c9aa75f2069bd3c0d2369c404899d457e391d0c.tar.bz2 |
fix TestSCons.get_platform_python_info() to work on win32, had omitted some needed imports
Diffstat (limited to 'testing')
-rw-r--r-- | testing/framework/TestSCons.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/testing/framework/TestSCons.py b/testing/framework/TestSCons.py index c9de47a..50942ab 100644 --- a/testing/framework/TestSCons.py +++ b/testing/framework/TestSCons.py @@ -1270,12 +1270,9 @@ SConscript( sconscript ) if sys.platform == 'win32': self.run(program=python, stdin="""\ -import sysconfig +import sysconfig, sys, os.path try: - if sys.platform == 'win32': py_ver = 'python%d%d' % sys.version_info[:2] - else: - py_ver = 'python%d.%d' % sys.version_info[:2] except AttributeError: py_ver = 'python' + sys.version[:3] # print include and lib path |