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