@@ -406,45 +406,6 @@ JNIEXPORT int JNICALL Java_org_kivy_android_PythonService_nativeStart(
406
406
}
407
407
408
408
#if defined(BOOTSTRAP_NAME_SERVICELIBRARY )
409
- // JNIEXPORT void JNICALL Java_org_kivy_android_PythonWorker_nativeStart(
410
- // JNIEnv *env,
411
- // jobject thiz,
412
- // jstring j_android_private,
413
- // jstring j_android_argument,
414
- // jstring j_worker_entrypoint,
415
- // jstring j_python_name,
416
- // jstring j_python_home,
417
- // jstring j_python_path) {
418
- // jboolean iscopy;
419
- // const char *android_private =
420
- // (*env)->GetStringUTFChars(env, j_android_private, &iscopy);
421
- // const char *android_argument =
422
- // (*env)->GetStringUTFChars(env, j_android_argument, &iscopy);
423
- // const char *worker_entrypoint =
424
- // (*env)->GetStringUTFChars(env, j_worker_entrypoint, &iscopy);
425
- // const char *python_name =
426
- // (*env)->GetStringUTFChars(env, j_python_name, &iscopy);
427
- // const char *python_home =
428
- // (*env)->GetStringUTFChars(env, j_python_home, &iscopy);
429
- // const char *python_path =
430
- // (*env)->GetStringUTFChars(env, j_python_path, &iscopy);
431
-
432
- // setenv("ANDROID_PRIVATE", android_private, 1);
433
- // setenv("ANDROID_ARGUMENT", android_argument, 1);
434
- // setenv("ANDROID_APP_PATH", android_argument, 1);
435
- // setenv("ANDROID_ENTRYPOINT", worker_entrypoint, 1);
436
- // setenv("PYTHONOPTIMIZE", "2", 1);
437
- // setenv("PYTHON_NAME", python_name, 1);
438
- // setenv("PYTHONHOME", python_home, 1);
439
- // setenv("PYTHONPATH", python_path, 1);
440
- // setenv("P4A_BOOTSTRAP", bootstrap_name, 1);
441
-
442
- // char *argv[] = {"."};
443
- // /* ANDROID_ARGUMENT points to service subdir,
444
- // * so main() will run main.py from this dir
445
- // */
446
- // main_(1, argv, 0);
447
- // }
448
409
449
410
JNIEXPORT int JNICALL Java_org_kivy_android_PythonWorker_nativeStart (
450
411
JNIEnv * env ,
0 commit comments