##// 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
embed1.py
10 lines | 221 B | text/x-python | PythonLexer
Thomas Kluyver
Add manual tests for embedding IPython.
r5679 """This tests standard embedding, automatically detecting the module and
local namespaces."""
f = set([1,2,3,4,5])
def bar(foo):
import IPython
IPython.embed(banner1='check f in globals, foo in locals')
bar(f)