Skip to content

Commit

Permalink
Fix missing argument for command os.listdir
Browse files Browse the repository at this point in the history
  • Loading branch information
opacam committed Oct 18, 2018
1 parent 9efead4 commit 5db62ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pythonforandroid/bootstraps/sdl2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def run_distribute(self):

# zip up the standard library
stdlib_zip = join(self.dist_dir, python_bundle_dir, 'stdlib.zip')
with current_directory(
join(self.ctx.python_recipe.get_build_dir(arch.arch),
'Lib')):
shprint(sh.zip, '-r', stdlib_zip, *os.listdir())
stdlib_dir = join(
self.ctx.python_recipe.get_build_dir(arch.arch), 'Lib')
with current_directory(stdlib_dir):
shprint(sh.zip, '-r', stdlib_zip, *os.listdir(stdlib_dir))

# copy the site-packages into place
shprint(sh.cp, '-r', self.ctx.get_python_install_dir(),
Expand Down

0 comments on commit 5db62ac

Please sign in to comment.