We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f3f3c commit 2efeee1Copy full SHA for 2efeee1
bootstrap/minimal/assets/_bootstrap.py
@@ -88,6 +88,7 @@ def flush(self):
88
#
89
90
import imp
91
+import os
92
from os.path import join, exists
93
94
ANDROID_LIB_PATH = posix.environ["ANDROID_LIB_PATH"]
@@ -115,6 +116,18 @@ def load_module(self, fullname):
115
116
117
sys.meta_path.append(CustomBuiltinImporter())
118
119
+#
120
+# Step 4: 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'
131
132
133
# Step 4: bootstrap the application !
0 commit comments