Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec0e42 commit c7e941cCopy full SHA for c7e941c
1 file changed
IPython/core/application.py
@@ -34,9 +34,9 @@
34
)
35
36
if os.name == "nt":
37
- programdata = Path(os.environ.get("PROGRAMDATA", None))
38
- if programdata:
39
- SYSTEM_CONFIG_DIRS = [str(programdata / "ipython")]
+ programdata = os.environ.get("PROGRAMDATA", None)
+ if programdata is not None:
+ SYSTEM_CONFIG_DIRS = [str(Path(programdata) / "ipython")]
40
else: # PROGRAMDATA is not defined by default on XP.
41
SYSTEM_CONFIG_DIRS = []
42
else:
0 commit comments