Skip to content

Commit

Permalink
add pythonw when using PYAPP_FULL_ISOLATION on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
trappitsch committed Mar 12, 2024
1 parent 75b8b7e commit 623ab43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,11 @@ fn set_python_path(distribution_source: &str) {

let installation_variable_pythonw = "PYAPP__INSTALLATION_PYTHONW_PATH";
if is_enabled("PYAPP_FULL_ISOLATION") {
set_runtime_variable(installation_variable_pythonw, &relative_path);
let mut tmp_relative_path = relative_path.clone();
if on_windows {
tmp_relative_path = tmp_relative_path.replace("python.exe", "pythonw.exe");
}
set_runtime_variable(installation_variable_pythonw, &tmp_relative_path);
} else if on_windows {
set_runtime_variable(installation_variable_pythonw, r"Scripts\pythonw.exe");
} else {
Expand Down

0 comments on commit 623ab43

Please sign in to comment.