We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09ea5b4 commit a625a90Copy full SHA for a625a90
pythonforandroid/bootstraps/sdl2/build/jni/src/start.c
@@ -234,12 +234,15 @@ int main(int argc, char *argv[]) {
234
" def flush(self):\n" \
235
" return\n" \
236
"sys.stdout = sys.stderr = LogFile()\n" \
237
- "import site; print(site.getsitepackages())\n"
238
"print('Android path', sys.path)\n" \
239
"import os\n" \
240
"print('os.environ is', os.environ)\n" \
241
"print('Android kivy bootstrap done. __name__ is', __name__)");
242
+#if PY_MAJOR_VERSION < 3
243
+ PyRun_SimpleString("import site; print site.getsitepackages()\n");
244
+#endif
245
+
246
/* PyRun_SimpleString( */
247
/* "import sys, posix\n" \ */
248
/* "private = posix.environ['ANDROID_PRIVATE']\n" \ */
0 commit comments