mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +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
|
|
@ -5,7 +5,7 @@ static char *prefix,*exec_prefix,*progpath,*module_search_path=0;
|
|||
|
||||
static void
|
||||
calculate_path()
|
||||
{ char *pypath=getenv("Python$Path");
|
||||
{ char *pypath=Py_GETENV("Python$Path");
|
||||
if(pypath)
|
||||
{ module_search_path=malloc(strlen(pypath)+1);
|
||||
if (module_search_path) sprintf(module_search_path,"%s",pypath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue