Skip to content
Permalink
Browse files

Script helper getBuildExecutable now works properly on Windows

  • Loading branch information...
hbina authored and horenmar committed Feb 2, 2019
1 parent 7012a31 commit bf4771a7ed8782d0ca2d8380064c33c3e8bafc83
Showing with 7 additions and 2 deletions.
  1. +7 −2 scripts/scriptCommon.py
@@ -6,8 +6,13 @@
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)

0 comments on commit bf4771a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.