##// END OF EJS Templates
Merge pull request #2148 from bfroehle/no_more_os_system...
Merge pull request #2148 from bfroehle/no_more_os_system win32 iptest: Use subprocess.Popen() instead of os.system(). The call to `os.system` in `iptest` prevents us from easily setting `$IPYTHONDIR` to a temporary directory. In theory we should be able to use `subprocess.Popen` instead of `os.system` in Windows. This would unify the code structure and make it easy to pass in a different environment. Note that Python < 2.7 does not have `os.kill`. I've attempted to work around this by using `ctypes` to kill any living processes.

File last commit:

r6620:e76311a3
r8028:6ed621a3 merge
Show More
embed2.py
5 lines | 220 B | text/x-python | PythonLexer
"""This tests passing a dict for the user_ns at shell instantiation."""
from IPython import embed
user_ns = dict(cookie='monster')
embed(user_ns=user_ns, banner1="check 'cookie' present, locals and globals equivalent")