Skip to content

Automated generation of IDE profile files from tornado command #583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[fix] Select first python interpreter for idea xml files if multiple …
…exist
  • Loading branch information
stratika committed Oct 23, 2024
commit 6180a8e9c99d6cf430f134c9f46e22052a7f3d25
4 changes: 3 additions & 1 deletion tornado-assembly/src/bin/idea_xml_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ def tornadovm_ide_init(tornadoSDKPath, javaHome, backends):
backends_separated_space = " ".join(backends)

if os.name == 'nt':
pythonHome = subprocess.check_output(["where", "python"]).decode().strip()
# Multiple paths of pytho executables may be listed, the first is selected as default
pythonHome = subprocess.check_output(["where", "python"]).decode().strip().split("\r\n")
pythonHome = Path(pythonHome[0])
else:
pythonHome = subprocess.check_output(["which", "python3"]).decode().strip()

Expand Down