Skip to content

Commit

Permalink
Merge pull request #1898 from opacam/hotfix-pymodules-install
Browse files Browse the repository at this point in the history
Fix `run_pymodules_install` when `project_dir` isn't supplied
  • Loading branch information
AndreMiras authored Jun 28, 2019
2 parents c8e8cf9 + 1a43242 commit e6a6271
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pythonforandroid/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,9 @@ def run_pymodules_install(ctx, modules, project_dir=None,
info('*** PYTHON PACKAGE / PROJECT INSTALL STAGE ***')
modules = list(filter(ctx.not_has_package, modules))

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

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

0 comments on commit e6a6271

Please sign in to comment.