Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 17396:beb9d2b02846 legacy-trunk
Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 10 Apr 2001 22:07:43 +0000 |
| parents | b44e77a12978 |
| children | ee24bd0cad29 4cb34314bd97 |
line wrap: on
line diff
--- a/Python/sysmodule.c Tue Apr 10 21:51:29 2001 +0000 +++ b/Python/sysmodule.c Tue Apr 10 22:07:43 2001 +0000 @@ -808,7 +808,11 @@ if (argc > 0 && argv0 != NULL) 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) n--; /* Drop trailing separator */
