##// END OF EJS Templates
set .ipython dir location earlier on
vivainio -
Show More
@@ -6,7 +6,7 b' Requires Python 2.1 or better.'
6 6
7 7 This file contains the main make_IPython() starter function.
8 8
9 $Id: ipmaker.py 1111 2006-01-30 21:16:07Z vivainio $"""
9 $Id: ipmaker.py 1115 2006-01-31 08:49:20Z vivainio $"""
10 10
11 11 #*****************************************************************************
12 12 # Copyright (C) 2001-2006 Fernando Perez. <fperez@colorado.edu>
@@ -127,6 +127,12 b" object? -> Details about 'object'. ?object also works, ?? prints more."
127 127 ipythondir = os.path.abspath(os.environ.get('IPYTHONDIR',
128 128 os.path.join(IP.home_dir,ipdir_def)))
129 129
130 # add personal .ipython dir to sys.path so that users can put things in
131 # there for customization
132 sys.path.append(ipythondir)
133
134 sys.path.insert(0, '') # add . to sys.path. Fix from Prabhu Ramachandran
135
130 136 # we need the directory where IPython itself is installed
131 137 import IPython
132 138 IPython_dir = os.path.dirname(IPython.__file__)
@@ -476,11 +482,6 b" object? -> Details about 'object'. ?object also works, ?? prints more."
476 482 # from this point on, all config should be handled through IP_rc,
477 483 # opts* shouldn't be used anymore.
478 484
479 # add personal .ipython dir to sys.path so that users can put things in
480 # there for customization
481 sys.path.append(IP_rc.ipythondir)
482
483 sys.path.insert(0, '') # add . to sys.path. Fix from Prabhu Ramachandran
484 485
485 486 # update IP_rc with some special things that need manual
486 487 # tweaks. Basically options which affect other options. I guess this
General Comments 0
You need to be logged in to leave comments. Login now