Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-O committed Jul 8, 2023
2 parents 4fe8728 + 0851a10 commit 2766140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions buildozer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from subprocess import Popen, PIPE, TimeoutExpired
from os import environ, unlink, walk, sep, listdir, makedirs
from copy import copy
from shutil import copyfile, rmtree, copytree, move
from shutil import copyfile, rmtree, copytree, move, which
from fnmatch import fnmatch

from pprint import pformat
Expand Down Expand Up @@ -243,13 +243,10 @@ def error(self, msg):

def checkbin(self, msg, fn):
self.debug('Search for {0}'.format(msg))
if exists(fn):
return realpath(fn)
for dn in environ['PATH'].split(':'):
rfn = realpath(join(dn, fn))
if exists(rfn):
self.debug(' -> found at {0}'.format(rfn))
return rfn
executable_location = which(fn)
if executable_location:
self.debug(' -> found at {0}'.format(executable_location))
return realpath(executable_location)
self.error('{} not found, please install it.'.format(msg))
exit(1)

Expand Down
2 changes: 1 addition & 1 deletion buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ android.allow_backup = True
# (str) python-for-android specific commit to use, defaults to HEAD, must be within p4a.branch
#p4a.commit = HEAD

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
# (str) python-for-android git clone directory
#p4a.source_dir =

# (str) The directory in which python-for-android should look for your own build recipes (if any)
Expand Down

0 comments on commit 2766140

Please sign in to comment.