mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add -E command line switch (ignore environment variables like PYTHONHOME
and PYTHONPATH).
This commit is contained in:
parent
f973c6d594
commit
7d4bb9f179
12 changed files with 59 additions and 34 deletions
|
@ -425,7 +425,7 @@ calculate_path(void)
|
|||
char *buf;
|
||||
size_t bufsz;
|
||||
char *pythonhome = Py_GetPythonHome();
|
||||
char *envpath = getenv("PYTHONPATH");
|
||||
char *envpath = Py_GETENV("PYTHONPATH");
|
||||
|
||||
#ifdef MS_WIN32
|
||||
int skiphome, skipdefault;
|
||||
|
|
|
@ -289,7 +289,7 @@ calculate_path(void)
|
|||
char *buf;
|
||||
int bufsz;
|
||||
char *pythonhome = Py_GetPythonHome();
|
||||
char *envpath = getenv("PYTHONPATH");
|
||||
char *envpath = Py_GETENV("PYTHONPATH");
|
||||
#ifdef MS_WIN32
|
||||
char *machinepath, *userpath;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue