Skip to content

Commit 8739241

Browse files
authored
Merge pull request #1616 from opacam/fix-startc-char
Fix C code being wrong for python2 in start.c (char * to wchar_t *)
2 parents 3808066 + c5d2158 commit 8739241

File tree

1 file changed

+4
-0
lines changed
  • pythonforandroid/bootstraps/common/build/jni/application/src

1 file changed

+4
-0
lines changed

pythonforandroid/bootstraps/common/build/jni/application/src/start.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ int main(int argc, char *argv[]) {
152152
Py_NoSiteFlag=1;
153153
#endif
154154

155+
#if PY_MAJOR_VERSION < 3
156+
Py_SetProgramName("android_python");
157+
#else
155158
Py_SetProgramName(L"android_python");
159+
#endif
156160

157161
#if PY_MAJOR_VERSION >= 3
158162
/* our logging module for android

0 commit comments

Comments
 (0)