Skip to content

Commit

Permalink
buildall_and_tests.py: fix path to java.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Roffild committed Apr 14, 2019
1 parent d9adcaa commit 6fdc1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildall_and_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def environmentWrite(fpath):
env = os.environ.get("JAVA_HOME")
if env is None:
for env in Path(os.environ["ProgramFiles"]).rglob("java.exe"):
env = env.parent
env = env.parent.parent
break
cfg.write('"JAVA_HOME"="' + str(env).replace("\\", "\\\\") + '"\n')
env = os.environ.get("JAVA_TOOL_OPTIONS")
Expand Down

0 comments on commit 6fdc1df

Please sign in to comment.