Script helper getBuildExecutable now works properly on Windows

This commit is contained in:
hbina4326 2019-02-02 06:20:56 -05:00 committed by Martin Hořeňovský
parent 7012a31a39
commit bf4771a7ed
1 changed files with 7 additions and 2 deletions

View File

@ -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)