mirror of
https://github.com/python/cpython.git
synced 2025-07-18 16:55:20 +00:00
Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger
This commit is contained in:
parent
13aa70679e
commit
bceccf5f43
11 changed files with 240 additions and 162 deletions
|
@ -808,7 +808,11 @@ PySys_SetArgv(int argc, char **argv)
|
|||
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue