[Python-checkins] CVS: python/dist/src/Python sysmodule.c,2.84,2.85

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 10 Apr 2001 15:07:45 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv8731

Modified Files:
	sysmodule.c 
Log Message:
Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger

Index: sysmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/sysmodule.c,v
retrieving revision 2.84
retrieving revision 2.85
diff -C2 -r2.84 -r2.85
*** sysmodule.c	2001/03/23 02:46:52	2.84
--- sysmodule.c	2001/04/10 22:07:43	2.85
***************
*** 809,813 ****
--- 809,817 ----
  			p = strrchr(argv0, SEP);
  		if (p != NULL) {
+ #ifndef RISCOS
  			n = p + 1 - argv0;
+ #else /* don't include trailing separator */
+ 			n = p - argv0;
+ #endif /* RISCOS */
  #if SEP == '/' /* Special case for Unix filename syntax */
  			if (n > 1)