@@ -165,26 +165,14 @@ int main(int argc, char *argv[]) {
165165 // Set up the python path
166166 char paths [256 ];
167167
168- char crystax_python_dir [256 ];
169- snprintf (crystax_python_dir , 256 ,
170- "%s/crystax_python" , getenv ("ANDROID_UNPACK" ));
171168 char python_bundle_dir [256 ];
172169 snprintf (python_bundle_dir , 256 ,
173170 "%s/_python_bundle" , getenv ("ANDROID_UNPACK" ));
174- if (dir_exists (crystax_python_dir ) || dir_exists (python_bundle_dir )) {
175- if (dir_exists (crystax_python_dir )) {
176- LOGP ("crystax_python exists" );
177- snprintf (paths , 256 ,
178- "%s/stdlib.zip:%s/modules" ,
179- crystax_python_dir , crystax_python_dir );
180- }
181-
182- if (dir_exists (python_bundle_dir )) {
183- LOGP ("_python_bundle dir exists" );
184- snprintf (paths , 256 ,
185- "%s/stdlib.zip:%s/modules" ,
186- python_bundle_dir , python_bundle_dir );
187- }
171+ if (dir_exists (python_bundle_dir )) {
172+ LOGP ("_python_bundle dir exists" );
173+ snprintf (paths , 256 ,
174+ "%s/stdlib.zip:%s/modules" ,
175+ python_bundle_dir , python_bundle_dir );
188176
189177 LOGP ("calculated paths to be..." );
190178 LOGP (paths );
@@ -196,10 +184,8 @@ int main(int argc, char *argv[]) {
196184
197185 LOGP ("set wchar paths..." );
198186 } else {
199- // We do not expect to see crystax_python any more, so no point
200- // reminding the user about it. If it does exist, we'll have
201- // logged it earlier.
202- LOGP ("_python_bundle does not exist" );
187+ LOGP ("_python_bundle does not exist...this not looks good, all python"
188+ " recipes should have this folder, should we expect a crash soon?" );
203189 }
204190
205191 Py_Initialize ();
@@ -234,18 +220,6 @@ int main(int argc, char *argv[]) {
234220 PyRun_SimpleString ("import sys, posix\n" );
235221
236222 char add_site_packages_dir [256 ];
237- if (dir_exists (crystax_python_dir )) {
238- snprintf (add_site_packages_dir , 256 ,
239- "sys.path.append('%s/site-packages')" ,
240- crystax_python_dir );
241-
242- PyRun_SimpleString ("import sys\n"
243- "sys.argv = ['notaninterpreterreally']\n"
244- "from os.path import realpath, join, dirname" );
245- PyRun_SimpleString (add_site_packages_dir );
246- /* "sys.path.append(join(dirname(realpath(__file__)), 'site-packages'))") */
247- PyRun_SimpleString ("sys.path = ['.'] + sys.path" );
248- }
249223
250224 if (dir_exists (python_bundle_dir )) {
251225 snprintf (add_site_packages_dir , 256 ,
0 commit comments