mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 21:12:50 +00:00
try some things
This commit is contained in:
parent
4d8962b7e5
commit
d6784e38cb
@ -43,7 +43,7 @@ def _which(program):
|
|||||||
Return absolute path to a command found on system PATH.
|
Return absolute path to a command found on system PATH.
|
||||||
"""
|
"""
|
||||||
def is_exe(fpath):
|
def is_exe(fpath):
|
||||||
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
|
return os.path.isfile(fpath) #and (os.access(fpath, os.X_OK) or fpath.endswith('.py'))
|
||||||
|
|
||||||
fpath, fname = os.path.split(program)
|
fpath, fname = os.path.split(program)
|
||||||
if fpath and is_exe(os.path.abspath(program)):
|
if fpath and is_exe(os.path.abspath(program)):
|
||||||
@ -189,6 +189,7 @@ class Builder(object):
|
|||||||
self._print_verbose('Executables:')
|
self._print_verbose('Executables:')
|
||||||
for executable in self.config.options('executables'):
|
for executable in self.config.options('executables'):
|
||||||
path = self.config.get('executables', executable)
|
path = self.config.get('executables', executable)
|
||||||
|
print(executable + " : " + path)
|
||||||
if not path.strip():
|
if not path.strip():
|
||||||
path = None
|
path = None
|
||||||
else:
|
else:
|
||||||
@ -203,6 +204,7 @@ class Builder(object):
|
|||||||
self._print_verbose('Paths:')
|
self._print_verbose('Paths:')
|
||||||
for name in self.config.options('paths'):
|
for name in self.config.options('paths'):
|
||||||
path = os.path.abspath(self.config.get('paths', name))
|
path = os.path.abspath(self.config.get('paths', name))
|
||||||
|
print(executable + " : " + path)
|
||||||
setattr(self, '{name}_path'.format(name=name), path)
|
setattr(self, '{name}_path'.format(name=name), path)
|
||||||
self._print_verbose(' {name:.<20} {path}'.format(name=name + ': ', path=path))
|
self._print_verbose(' {name:.<20} {path}'.format(name=name + ': ', path=path))
|
||||||
# Make any command line options override the config file
|
# Make any command line options override the config file
|
||||||
|
Loading…
Reference in New Issue
Block a user