##// END OF EJS Templates
More work to address review comments....
More work to address review comments. * Moved twisted import to top-level of :mod:`IPython.kernel.error` (r1333). * Added docstring about :meth:`InteractiveShell.load_extension` returning whatever the return value of :func:`load_ipython_extension` is. * Renamed the :attr:`user_config_ns` attribute to :attr:`user_ns_hidden` to better reflect what it does. * Moved the ``%HOME`` to the end of home directory options attemped in :func:`IPython.utils.path.get_home_dir` on Windows.

File last commit:

r856:50044c43
r2509:70d27296
Show More
test_cd.ipy
18 lines | 289 B | text/plain | TextLexer
# assumes there is /tmp and /opt
def curpath():
cwd = os.path.splitdrive(os.getcwd())[1].replace('\\','/')
print cwd
return cwd
import os
cd /
assert curpath() == '/'
%cd /tmp
assert curpath() == '/tmp'
pushd /opt
assert curpath() == '/opt'
popd
assert curpath() == '/tmp'