diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-05-15 16:46:05 -0700 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-05-15 16:46:05 -0700 |
commit | 04574467eac8a31dcd35325bbfbc2460a183a182 (patch) | |
tree | 546ef4d479c5fb235eb9da8c036c25a0ce4eaac7 /QMTest | |
parent | 077f2cd6bf2e57184a1b5c3e3ec98b1b3d6b5fdc (diff) | |
download | scons-04574467eac8a31dcd35325bbfbc2460a183a182.tar.gz |
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 9c89249f..b24ef93c 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): |