diff options
| author | hbina4326 | 2019-02-02 06:20:56 -0500 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-02-23 14:44:40 +0100 |
| commit | bf4771a7ed8782d0ca2d8380064c33c3e8bafc83 (patch) | |
| tree | 9431bdaa80dc5b28386d1ba64b2366e207e4073e /scripts/scriptCommon.py | |
| parent | 7012a31a390480f2d602671595eed9b853efc73c (diff) | |
| download | catch3-bf4771a7ed8782d0ca2d8380064c33c3e8bafc83.tar.gz | |
Script helper getBuildExecutable now works properly on Windows
Diffstat (limited to 'scripts/scriptCommon.py')
| -rw-r--r-- | scripts/scriptCommon.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/scriptCommon.py b/scripts/scriptCommon.py index 4b70f961..eadf9ff3 100644 --- a/scripts/scriptCommon.py +++ b/scripts/scriptCommon.py @@ -6,8 +6,13 @@ import subprocess catchPath = os.path.dirname(os.path.realpath( os.path.dirname(sys.argv[0]))) def getBuildExecutable(): - dir = os.environ.get('CATCH_DEV_OUT_DIR', "cmake-build-debug/projects/SelfTest") - return dir + if os.name == 'nt': + dir = os.environ.get('CATCH_DEV_OUT_DIR', "cmake-build-debug/projects/SelfTest.exe") + return dir + else: + dir = os.environ.get('CATCH_DEV_OUT_DIR', "cmake-build-debug/projects/SelfTest") + return dir + def runAndCapture( args ): child = subprocess.Popen(" ".join( args ), shell=True, stdout=subprocess.PIPE) |