Skip to content

Commit bb093ce

Browse files
committed
Fixed python3 path passing in sdl2 bootstrap
1 parent 7bcedd3 commit bb093ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonforandroid/bootstraps/sdl2/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from pythonforandroid.toolchain import Bootstrap, shprint, current_directory, info, warning, ArchARM, info_main
2-
from os.path import join, exists
2+
from os.path import join, exists, curdir, abspath
33
from os import walk
44
import glob
55
import sh
@@ -101,7 +101,8 @@ def run_distribute(self):
101101
shprint(sh.cp, '-r', self.ctx.get_python_install_dir(), 'crystax_python/crystax_python/site-packages')
102102

103103
info('Renaming .so files to reflect cross-compile')
104-
site_packages_dir = 'crystax_python/crystax_python/site-packages'
104+
site_packages_dir = join(abspath(curdir),
105+
'crystax_python/crystax_python/site-packages')
105106
filens = shprint(sh.find, site_packages_dir, '-iname', '*.so').stdout.decode(
106107
'utf-8').split('\n')[:-1]
107108
for filen in filens:

0 commit comments

Comments
 (0)