From d623b99ffab6a8efe3192025c224d716be3bdbbe Mon Sep 17 00:00:00 2001 From: Talbert Date: Tue, 27 Aug 2019 15:11:59 -0600 Subject: [PATCH] Specify python env on Mac for Jupyter launch --- pymdwizard/gui/jupyterstarter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pymdwizard/gui/jupyterstarter.py b/pymdwizard/gui/jupyterstarter.py index 881c12b0..c754bed9 100644 --- a/pymdwizard/gui/jupyterstarter.py +++ b/pymdwizard/gui/jupyterstarter.py @@ -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")