From 5db62ac662e6f610488a8880695f55b55a7975df Mon Sep 17 00:00:00 2001 From: opacam Date: Thu, 18 Oct 2018 12:16:38 +0200 Subject: [PATCH] Fix missing argument for command os.listdir --- pythonforandroid/bootstraps/sdl2/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pythonforandroid/bootstraps/sdl2/__init__.py b/pythonforandroid/bootstraps/sdl2/__init__.py index 7289eaab8a..0a64bf730d 100644 --- a/pythonforandroid/bootstraps/sdl2/__init__.py +++ b/pythonforandroid/bootstraps/sdl2/__init__.py @@ -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(),