diff --git a/IPython/core/application.py b/IPython/core/application.py index 2b26d4f..3e2a8c9 100644 --- a/IPython/core/application.py +++ b/IPython/core/application.py @@ -34,9 +34,9 @@ from traitlets import ( ) if os.name == "nt": - programdata = Path(os.environ.get("PROGRAMDATA", None)) - if programdata: - SYSTEM_CONFIG_DIRS = [str(programdata / "ipython")] + programdata = os.environ.get("PROGRAMDATA", None) + if programdata is not None: + SYSTEM_CONFIG_DIRS = [str(Path(programdata) / "ipython")] else: # PROGRAMDATA is not defined by default on XP. SYSTEM_CONFIG_DIRS = [] else: