From 2546c926fad6f5dd1678bdad44a5b59e2ec49d16 2016-08-16 07:57:06 From: anantkaushik89 Date: 2016-08-16 07:57:06 Subject: [PATCH] Incorporating review comments --- diff --git a/IPython/utils/process.py b/IPython/utils/process.py index 905d56a..05dd7a6 100644 --- a/IPython/utils/process.py +++ b/IPython/utils/process.py @@ -37,12 +37,8 @@ def find_cmd(cmd): is a risk you will find the wrong one. Instead find those using the following code and looking for the application itself:: - from IPython.utils.path import get_ipython_module_path - from IPython.utils.process import pycmd2argv - argv = pycmd2argv(get_ipython_module_path('IPython.terminal.ipapp')) - - Note, The code for pycmd2argv has been removed now as it was not used - anywhere. get_ipython_module_path should give us that same result. + import sys + argv = [sys.executable, '-m', 'IPython.terminal'] Parameters ---------- diff --git a/docs/source/whatsnew/pr/incompat-funcs-removed.rst b/docs/source/whatsnew/pr/incompat-funcs-removed.rst new file mode 100644 index 0000000..ee0b8db --- /dev/null +++ b/docs/source/whatsnew/pr/incompat-funcs-removed.rst @@ -0,0 +1,9 @@ +Functions Removed in 6.x Development cycle +------------------------------------------ + +The following functions have been removed in the +development cycle marked for the development cycle +marked for Milestone 6.0. + +* is_cmd_found +* pycmd2argv