[IPython-User] Automatically change to specific directory on start up?
Julian Taylor
jtaylor.debian@googlemail....
Wed Aug 3 09:00:51 CDT 2011
On 08/03/2011 03:45 PM, reckoner wrote:
> Is there a way to automatically change to specific directory on start
> up? I see a
>
> c.InteractiveShellApp.exec_lines
>
> in the ipython_config, but just putting a "cd" command in there doesn't
> seem to be working ( at least on Windows XP ).
cd is a ipython magic, so this should work:
c.InteractiveShellApp.exec_lines = ['get_ipython().magic("cd /path")']
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
Url : http://mail.scipy.org/pipermail/ipython-user/attachments/20110803/e7c76a11/attachment.bin
More information about the IPython-User
mailing list