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 2045d5c commit 5bef67fCopy full SHA for 5bef67f
1 file changed
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