File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ def flush(self):
88
88
#
89
89
90
90
import imp
91
+ import os
91
92
from os .path import join , exists
92
93
93
94
ANDROID_LIB_PATH = posix .environ ["ANDROID_LIB_PATH" ]
@@ -115,9 +116,21 @@ def load_module(self, fullname):
115
116
116
117
sys .meta_path .append (CustomBuiltinImporter ())
117
118
119
+ #
120
+ # Step 5: fix some modules
121
+ #
122
+
123
+ # tempfile: https://github.com/kivy/python-for-android/issues/289
124
+ tempdir_name = posix .environ ["ANDROID_EXTERNAL_DATA_PATH" ]+ '/tmp'
125
+ if not exists (tempdir_name ):
126
+ tempdir = os .mkdir (tempdir_name , 770 )
127
+ os .environ ['TMPDIR' ] = tempdir_name
128
+
129
+ # _scproxy: https://github.com/kivy/python-for-android/issues/186
130
+ sys .platform = 'linux2'
118
131
119
132
#
120
- # Step 4 : bootstrap the application !
133
+ # Step 6 : bootstrap the application !
121
134
#
122
135
123
136
main_module = sys .argv [1 ]
You can’t perform that action at this time.
0 commit comments