We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7841d8 commit 50d160dCopy full SHA for 50d160d
1 file changed
run-tests.py
@@ -24,8 +24,13 @@ def cleanup(out):
24
if not GCC_EXE:
25
sys.exit('Failed to run tests: gcc compiler not found')
26
27
-os.environ["PATH"] = os.getcwd() + os.pathsep + os.environ["PATH"]
+# Check if simplecpp is in the PATH
28
SIMPLECPP_EXE = shutil.which('simplecpp')
29
+# If not found in PATH, try current directory
30
+if not SIMPLECPP_EXE:
31
+ candidate = os.path.join(os.getcwd(), "simplecpp")
32
+ if os.path.isfile(candidate) and os.access(candidate, os.X_OK):
33
+ SIMPLECPP_EXE = candidate
34
if not SIMPLECPP_EXE:
35
sys.exit('Failed to run tests: simplecpp compiler not found')
36
0 commit comments