Skip to content

Commit e6a6271

Browse files
authored
Merge pull request kivy#1898 from opacam/hotfix-pymodules-install
Fix `run_pymodules_install` when `project_dir` isn't supplied
2 parents c8e8cf9 + 1a43242 commit e6a6271

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythonforandroid/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,9 @@ def run_pymodules_install(ctx, modules, project_dir=None,
721721
info('*** PYTHON PACKAGE / PROJECT INSTALL STAGE ***')
722722
modules = list(filter(ctx.not_has_package, modules))
723723

724-
# We change current working directory later, so this
725-
# has to be an absolute path:
726-
project_dir = abspath(project_dir)
724+
# We change current working directory later, so this has to be an absolute
725+
# path or `None` in case that we didn't supply the `project_dir` via kwargs
726+
project_dir = abspath(project_dir) if project_dir else None
727727

728728
# Bail out if no python deps and no setup.py to process:
729729
if not modules and (

0 commit comments

Comments
 (0)