~ipython-contrib/ipython/qt-frontend

0.1.1 by ville
initialization (no svn history)
1
# assumes there is /tmp and /opt
2
3
def curpath():
4
    cwd = os.path.splitdrive(os.getcwd())[1].replace('\\','/')
5
    print cwd
6
    return cwd
7
8
import os
9
cd /
10
assert curpath() == '/'
11
%cd /tmp
12
assert curpath() == '/tmp'
13
pushd /opt
14
assert curpath() == '/opt'
15
popd
16
assert curpath() == '/tmp'
17
18