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

Juergen Hasch python at elbonia.de
Sun Dec 21 07:12:26 EST 2014


Hi Thomas,
thanks. This is exactly what I was looking for.

  Juergen

Am 21.12.2014 um 01:40 schrieb Thomas Kluyver:
> Hi Juergen,
> 
> On 20 December 2014 at 05:29, Juergen Hasch <python at elbonia.de <mailto: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
> 
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 




More information about the IPython-dev mailing list