File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ def flush(self):
8888#
8989
9090import imp
91+ import os
9192from os .path import join , exists
9293
9394ANDROID_LIB_PATH = posix .environ ["ANDROID_LIB_PATH" ]
@@ -115,9 +116,21 @@ def load_module(self, fullname):
115116
116117sys .meta_path .append (CustomBuiltinImporter ())
117118
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'
118131
119132#
120- # Step 4 : bootstrap the application !
133+ # Step 6 : bootstrap the application !
121134#
122135
123136main_module = sys .argv [1 ]
You can’t perform that action at this time.
0 commit comments