##// END OF EJS Templates
Fix case where programdata is None on windows....
Matthias Bussonnier -
Show More
@@ -34,9 +34,9 b' from traitlets import ('
34 )
34 )
35
35
36 if os.name == "nt":
36 if os.name == "nt":
37 programdata = Path(os.environ.get("PROGRAMDATA", None))
37 programdata = os.environ.get("PROGRAMDATA", None)
38 if programdata:
38 if programdata is not None:
39 SYSTEM_CONFIG_DIRS = [str(programdata / "ipython")]
39 SYSTEM_CONFIG_DIRS = [str(Path(programdata) / "ipython")]
40 else: # PROGRAMDATA is not defined by default on XP.
40 else: # PROGRAMDATA is not defined by default on XP.
41 SYSTEM_CONFIG_DIRS = []
41 SYSTEM_CONFIG_DIRS = []
42 else:
42 else:
General Comments 0
You need to be logged in to leave comments. Login now