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.
2 parents 8aae9a3 + 5bef67f commit bfbdaafCopy full SHA for bfbdaaf
IPython/core/application.py
@@ -33,10 +33,11 @@
33
)
34
35
if os.name == "nt":
36
+ # %PROGRAMDATA% is not safe by default, require opt-in to trust it
37
programdata = os.environ.get("PROGRAMDATA", None)
- if programdata is not None:
38
+ if os.environ.get("IPYTHON_USE_PROGRAMDATA") == "1" and programdata is not None:
39
SYSTEM_CONFIG_DIRS = [str(Path(programdata) / "ipython")]
- else: # PROGRAMDATA is not defined by default on XP.
40
+ else:
41
SYSTEM_CONFIG_DIRS = []
42
else:
43
SYSTEM_CONFIG_DIRS = [
0 commit comments