@@ -104,12 +104,15 @@ int main(int argc, char *argv[]) {
104
104
105
105
LOGP ("Preparing to initialize python" );
106
106
107
- if (dir_exists ("crystax_python/" )) {
107
+ char crystax_python_dir [256 ];
108
+ snprintf (crystax_python_dir , 256 ,
109
+ "%s/crystax_python" , getenv ("ANDROID_UNPACK" ));
110
+ if (dir_exists (crystax_python_dir )) {
108
111
LOGP ("crystax_python exists" );
109
112
char paths [256 ];
110
113
snprintf (paths , 256 ,
111
- "%s/crystax_python/ stdlib.zip:%s/crystax_python /modules" ,
112
- env_argument , env_argument );
114
+ "%s/stdlib.zip:%s/modules" ,
115
+ crystax_python_dir , crystax_python_dir );
113
116
/* snprintf(paths, 256, "%s/stdlib.zip:%s/modules", env_argument,
114
117
* env_argument); */
115
118
LOGP ("calculated paths to be..." );
@@ -166,11 +169,11 @@ int main(int argc, char *argv[]) {
166
169
" argument ]\n" );
167
170
}
168
171
169
- if (dir_exists ("crystax_python" )) {
172
+ if (dir_exists (crystax_python_dir )) {
170
173
char add_site_packages_dir [256 ];
171
174
snprintf (add_site_packages_dir , 256 ,
172
- "sys.path.append('%s/crystax_python/ site-packages')" ,
173
- env_argument );
175
+ "sys.path.append('%s/site-packages')" ,
176
+ crystax_python_dir );
174
177
175
178
PyRun_SimpleString ("import sys\n"
176
179
"sys.argv = ['notaninterpreterreally']\n"
0 commit comments