summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-05-15 23:46:05 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-05-15 23:46:05 (GMT)
commitee3e6af1cf734c27107b1b58a4f25830ec74834b (patch)
tree546ef4d479c5fb235eb9da8c036c25a0ce4eaac7 /QMTest
parentddf761e8c2568fb416158b70c92f83e9a821a1bb (diff)
downloadSCons-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.py6
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):