Skip to content

Commit

Permalink
Specify python env on Mac for Jupyter launch
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinTalbert committed Aug 27, 2019
1 parent 8b59bc3 commit d623b99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymdwizard/gui/jupyterstarter.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def launch(self):
python_dir = utils.get_install_dname("python")
if platform.system() == "Darwin":
jupyterexe = os.path.join(python_dir, "jupyter")
my_env = os.environ.copy()
my_env["PYTHONPATH"] = os.path.join(python_dir, "python")
p = Popen([jupyterexe, "notebook"], cwd=jupyter_dname)
else:
root_dir = utils.get_install_dname("root")
Expand Down

0 comments on commit d623b99

Please sign in to comment.