Show More
@@ -36,9 +36,13 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 | ||||
39 | env = dict(IPYTHONDIR=IPYTHONDIR) |
|
40 | env = dict(IPYTHONDIR=IPYTHONDIR) | |
40 | if 'PYTHONPATH' in os.environ: |
|
41 | if 'PYTHONPATH' in os.environ: | |
41 | env['PYTHONPATH'] = os.environ['PYTHONPATH'] |
|
42 | env['PYTHONPATH'] = os.environ['PYTHONPATH'] | |
|
43 | if sys.platform == 'win32': | |||
|
44 | env["SYSTEMROOT"] = os.environ["SYSTEMROOT"] | |||
|
45 | ||||
42 | save_get_ipython_dir = path.get_ipython_dir |
|
46 | save_get_ipython_dir = path.get_ipython_dir | |
43 | path.get_ipython_dir = lambda : IPYTHONDIR |
|
47 | path.get_ipython_dir = lambda : IPYTHONDIR | |
44 |
|
48 |
General Comments 0
You need to be logged in to leave comments.
Login now