diff options
-rw-r--r-- | Modules/getpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c index 751c0b7..4ddb663 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -761,7 +761,7 @@ calculate_program_full_path(const PyConfig *config, * absolutize() should help us out below */ else if(0 == _NSGetExecutablePath(execpath, &nsexeclength) && - _Py_isabs(execpath)) + (wchar_t)execpath[0] == SEP) { size_t len; wchar_t *path = Py_DecodeLocale(execpath, &len); |