@@ -48,9 +48,9 @@ public class PythonActivity extends SDLActivity {
48
48
private Bundle mMetaData = null ;
49
49
private PowerManager .WakeLock mWakeLock = null ;
50
50
51
- public String getKivyRoot () {
52
- String kivy_root = getFilesDir ().getAbsolutePath () + "/app" ;
53
- return kivy_root ;
51
+ public String getAppRoot () {
52
+ String app_root = getFilesDir ().getAbsolutePath () + "/app" ;
53
+ return app_root ;
54
54
}
55
55
56
56
@@ -59,26 +59,26 @@ protected void onCreate(Bundle savedInstanceState) {
59
59
Log .v (TAG , "My oncreate running" );
60
60
resourceManager = new ResourceManager (this );
61
61
this .showLoadingScreen ();
62
- File kivy_root_file = new File (getKivyRoot ());
62
+ File app_root_file = new File (getAppRoot ());
63
63
64
64
Log .v (TAG , "Ready to unpack" );
65
- unpackData ("private" , kivy_root_file );
65
+ unpackData ("private" , app_root_file );
66
66
67
67
Log .v (TAG , "About to do super onCreate" );
68
68
super .onCreate (savedInstanceState );
69
69
Log .v (TAG , "Did super onCreate" );
70
70
71
71
this .mActivity = this ;
72
72
73
- String kivy_root_dir = getKivyRoot ();
73
+ String app_root_dir = getAppRoot ();
74
74
String mFilesDirectory = mActivity .getFilesDir ().getAbsolutePath ();
75
75
Log .v (TAG , "Setting env vars for start.c and Python to use" );
76
76
SDLActivity .nativeSetEnv ("ANDROID_PRIVATE" , mFilesDirectory );
77
- SDLActivity .nativeSetEnv ("ANDROID_ARGUMENT" , kivy_root_dir );
78
- SDLActivity .nativeSetEnv ("ANDROID_APP_PATH" , kivy_root_dir );
77
+ SDLActivity .nativeSetEnv ("ANDROID_ARGUMENT" , app_root_dir );
78
+ SDLActivity .nativeSetEnv ("ANDROID_APP_PATH" , app_root_dir );
79
79
SDLActivity .nativeSetEnv ("ANDROID_ENTRYPOINT" , "main.pyo" );
80
- SDLActivity .nativeSetEnv ("PYTHONHOME" , kivy_root_dir );
81
- SDLActivity .nativeSetEnv ("PYTHONPATH" , kivy_root_dir + ":" + kivy_root_dir + "/lib" );
80
+ SDLActivity .nativeSetEnv ("PYTHONHOME" , app_root_dir );
81
+ SDLActivity .nativeSetEnv ("PYTHONPATH" , app_root_dir + ":" + app_root_dir + "/lib" );
82
82
83
83
try {
84
84
Log .v (TAG , "Access to our meta-data..." );
@@ -101,9 +101,9 @@ protected void onCreate(Bundle savedInstanceState) {
101
101
}
102
102
103
103
public void loadLibraries () {
104
- String kivy_root = new String (getKivyRoot ());
105
- File kivy_root_file = new File (kivy_root );
106
- PythonUtil .loadLibraries (kivy_root_file );
104
+ String app_root = new String (getAppRoot ());
105
+ File app_root_file = new File (app_root );
106
+ PythonUtil .loadLibraries (app_root_file );
107
107
}
108
108
109
109
public void recursiveDelete (File f ) {
@@ -277,12 +277,12 @@ public static void start_service(String serviceTitle, String serviceDescription,
277
277
Intent serviceIntent = new Intent (PythonActivity .mActivity , PythonService .class );
278
278
String argument = PythonActivity .mActivity .getFilesDir ().getAbsolutePath ();
279
279
String filesDirectory = argument ;
280
- String kivy_root_dir = PythonActivity .mActivity .getKivyRoot ();
280
+ String app_root_dir = PythonActivity .mActivity .getAppRoot ();
281
281
serviceIntent .putExtra ("androidPrivate" , argument );
282
- serviceIntent .putExtra ("androidArgument" , kivy_root_dir );
282
+ serviceIntent .putExtra ("androidArgument" , app_root_dir );
283
283
serviceIntent .putExtra ("serviceEntrypoint" , "service/main.pyo" );
284
- serviceIntent .putExtra ("pythonHome" , kivy_root_dir );
285
- serviceIntent .putExtra ("pythonPath" , kivy_root_dir + ":" + kivy_root_dir + "/lib" );
284
+ serviceIntent .putExtra ("pythonHome" , app_root_dir );
285
+ serviceIntent .putExtra ("pythonPath" , app_root_dir + ":" + app_root_dir + "/lib" );
286
286
serviceIntent .putExtra ("serviceTitle" , serviceTitle );
287
287
serviceIntent .putExtra ("serviceDescription" , serviceDescription );
288
288
serviceIntent .putExtra ("pythonServiceArgument" , pythonServiceArgument );
0 commit comments