From 04574467eac8a31dcd35325bbfbc2460a183a182 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Mon, 15 May 2017 16:46:05 -0700 Subject: py2/3 add to TestSCons class: platform_has_symlink() to centralize checking --- QMTest/TestSCons.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'QMTest') 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): -- cgit v1.2.1