bpo-20443: Fix calculate_program_full_path() warning (GH-14446)
Don't call _Py_isabs() with a bytes string (char*), the function
expects as wide string.
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 @@
* 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);