Skip to content

Commit

Permalink
Fix export syntax on generated jep script
Browse files Browse the repository at this point in the history
This PR fixes shell syntax of the generated `jep` binary.

Shell does not like blanks around the "=".  Also, it seems appropriate
to quote the path in case of paths with blanks.

Fixes ninia#383.
See also ninia#382.
  • Loading branch information
seletz committed Mar 11, 2022
1 parent d80bf00 commit af96aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def copy_scripts(self):
if is_osx():
# OS X is setting sys.executable to java which is preventing it from finding site-packages in a venv
# setting PYTHONEXECUTABLE overrides sys.executable and helps find site-packages
context['pythonexecutable'] = 'export PYTHONEXECUTABLE = %s' % sys.executable
context['pythonexecutable'] = 'export PYTHONEXECUTABLE="%s"' % sys.executable


if not is_osx() and not is_windows():
Expand Down

0 comments on commit af96aa1

Please sign in to comment.