diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-05-15 23:46:05 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-05-15 23:46:05 (GMT) |
commit | ee3e6af1cf734c27107b1b58a4f25830ec74834b (patch) | |
tree | 546ef4d479c5fb235eb9da8c036c25a0ce4eaac7 /QMTest | |
parent | ddf761e8c2568fb416158b70c92f83e9a821a1bb (diff) | |
download | SCons-ee3e6af1cf734c27107b1b58a4f25830ec74834b.zip SCons-ee3e6af1cf734c27107b1b58a4f25830ec74834b.tar.gz SCons-ee3e6af1cf734c27107b1b58a4f25830ec74834b.tar.bz2 |
py2/3 add to TestSCons class: platform_has_symlink() to centralize checking
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestSCons.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index 9c89249..b24ef93 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -1313,6 +1313,12 @@ print(py_ver) alt_cpp_suffix = '.C' return alt_cpp_suffix + def platform_has_symlink(self): + if not hasattr(os, 'symlink') or sys.platform == 'win32': + return False + else: + return True + class Stat: def __init__(self, name, units, expression, convert=None): |