[IPython-dev] Getting the IPython path in a config file

Thomas Kluyver takowl at gmail.com
Sat Dec 20 19:40:51 EST 2014


Hi Juergen,

On 20 December 2014 at 05:29, Juergen Hasch <python at elbonia.de> wrote:

> Is there a better way than to look at sys.path[-1] to get the path to the
> IPython directory inside a config file ?


You can import IPython.utils.path and call get_ipython_dir():
http://ipython.org/ipython-doc/dev/api/generated/IPython.utils.path.html#IPython.utils.path.get_ipython_dir

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141220/b63f07ec/attachment.html>


More information about the IPython-dev mailing list