From 067a647876a37a6c5bf437be6ce2924a51dd9e36 2014-01-07 20:41:04 From: MinRK Date: 2014-01-07 20:41:04 Subject: [PATCH] use `-m` entry points in parallel launchers --- diff --git a/IPython/parallel/apps/launcher.py b/IPython/parallel/apps/launcher.py index 17b3fea..7b3f1ae 100644 --- a/IPython/parallel/apps/launcher.py +++ b/IPython/parallel/apps/launcher.py @@ -76,13 +76,11 @@ WINDOWS = os.name == 'nt' # Paths to the kernel apps #----------------------------------------------------------------------------- -cmd = "from IPython.parallel.apps.%s import launch_new_instance; launch_new_instance()" +ipcluster_cmd_argv = [sys.executable, "-m", "IPython.parallel.cluster"] -ipcluster_cmd_argv = [sys.executable, "-c", cmd % "ipclusterapp"] +ipengine_cmd_argv = [sys.executable, "-m", "IPython.parallel.engine"] -ipengine_cmd_argv = [sys.executable, "-c", cmd % "ipengineapp"] - -ipcontroller_cmd_argv = [sys.executable, "-c", cmd % "ipcontrollerapp"] +ipcontroller_cmd_argv = [sys.executable, "-m", "IPython.parallel.controller"] #----------------------------------------------------------------------------- # Base launchers and errors