Skip to content

Commit

Permalink
windows stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris7 committed Nov 30, 2023
1 parent 5c0af17 commit 453f661
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wooey/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,12 @@ class Meta:
verbose_name_plural = _("virtual environments")

def get_venv_python_binary(self):
if wooey_settings.IS_WINDOWS:
print(os.listdir(os.path.join(self.get_install_path(), "Scripts")))
return os.path.join(
self.get_install_path(),
"Scripts" if wooey_settings.IS_WINDOWS else "bin",
"python",
"python.exe" if wooey_settings.IS_WINDOWS else "python",
)

def get_install_path(self, ensure_exists=False):
Expand Down

0 comments on commit 453f661

Please sign in to comment.