[Python-checkins] CVS: python/dist/src/RISCOS/Modules getpath_riscos.c,1.1,1.2

Neil Schemenauer nascheme@users.sourceforge.net
Mon, 23 Jul 2001 09:30:29 -0700


Update of /cvsroot/python/python/dist/src/RISCOS/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv25036/RISCOS/Modules

Modified Files:
	getpath_riscos.c 
Log Message:
Add -E command line switch (ignore environment variables like PYTHONHOME
and PYTHONPATH).


Index: getpath_riscos.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/RISCOS/Modules/getpath_riscos.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** getpath_riscos.c	2001/03/02 05:57:54	1.1
--- getpath_riscos.c	2001/07/23 16:30:27	1.2
***************
*** 6,10 ****
  static void
  calculate_path()
! { char *pypath=getenv("Python$Path");
    if(pypath)
    { module_search_path=malloc(strlen(pypath)+1);
--- 6,10 ----
  static void
  calculate_path()
! { char *pypath=Py_GETENV("Python$Path");
    if(pypath)
    { module_search_path=malloc(strlen(pypath)+1);