Show More
@@ -36,8 +36,9 b' def setup():' | |||||
36 | global save_get_ipython_dir |
|
36 | global save_get_ipython_dir | |
37 |
|
37 | |||
38 | IPYTHONDIR = tempfile.mkdtemp() |
|
38 | IPYTHONDIR = tempfile.mkdtemp() | |
39 |
env = dict(IPYTHONDIR=IPYTHONDIR |
|
39 | env = dict(IPYTHONDIR=IPYTHONDIR) | |
40 | PYTHONPATH=os.environ['PYTHONPATH']) |
|
40 | if 'PYTHONPATH' in os.environ: | |
|
41 | env['PYTHONPATH'] = os.environ['PYTHONPATH'] | |||
41 | save_get_ipython_dir = path.get_ipython_dir |
|
42 | save_get_ipython_dir = path.get_ipython_dir | |
42 | path.get_ipython_dir = lambda : IPYTHONDIR |
|
43 | path.get_ipython_dir = lambda : IPYTHONDIR | |
43 |
|
44 |
General Comments 0
You need to be logged in to leave comments.
Login now