##// END OF EJS Templates
use `-c` to launch ipengine/ipcontroller on Windows Python 2...
Min RK -
Show More
@@ -68,10 +68,12 b' ipengine_cmd_argv = [sys.executable, "-m", "IPython.parallel.engine"]'
68 68 ipcontroller_cmd_argv = [sys.executable, "-m", "IPython.parallel.controller"]
69 69
70 70 if WINDOWS and sys.version_info < (3,):
71 # `python -m package` doesn't work on Windows Python 2,
72 # but `python -m module` does.
73 ipengine_cmd_argv = [sys.executable, "-m", "IPython.parallel.apps.ipengineapp"]
74 ipcontroller_cmd_argv = [sys.executable, "-m", "IPython.parallel.apps.ipcontrollerapp"]
71 # `python -m package` doesn't work on Windows Python 2
72 # due to weird multiprocessing bugs
73 # and python -m module puts classes in the `__main__` module,
74 # so instance checks get confused
75 ipengine_cmd_argv = [sys.executable, "-c", "from IPython.parallel.engine.__main__ import main; main()"]
76 ipcontroller_cmd_argv = [sys.executable, "-c", "from IPython.parallel.controller.__main__ import main; main()"]
75 77
76 78 #-----------------------------------------------------------------------------
77 79 # Base launchers and errors
@@ -1,3 +1,6 b''
1 if __name__ == '__main__':
1 def main():
2 2 from IPython.parallel.apps import ipcontrollerapp as app
3 3 app.launch_new_instance()
4
5 if __name__ == '__main__':
6 main()
@@ -1,3 +1,6 b''
1 if __name__ == '__main__':
1 def main():
2 2 from IPython.parallel.apps import ipengineapp as app
3 3 app.launch_new_instance()
4
5 if __name__ == '__main__':
6 main()
General Comments 0
You need to be logged in to leave comments. Login now