From d6784e38cb4e88eb9b2149d2b637b82e1d9e768d Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Tue, 26 Sep 2017 21:34:59 +0200 Subject: [PATCH] try some things --- builders/builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builders/builder.py b/builders/builder.py index 0a12ff6..0e6c53b 100644 --- a/builders/builder.py +++ b/builders/builder.py @@ -43,7 +43,7 @@ def _which(program): Return absolute path to a command found on system PATH. """ 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) if fpath and is_exe(os.path.abspath(program)): @@ -189,6 +189,7 @@ class Builder(object): self._print_verbose('Executables:') for executable in self.config.options('executables'): path = self.config.get('executables', executable) + print(executable + " : " + path) if not path.strip(): path = None else: @@ -203,6 +204,7 @@ class Builder(object): self._print_verbose('Paths:') for name in self.config.options('paths'): path = os.path.abspath(self.config.get('paths', name)) + print(executable + " : " + path) setattr(self, '{name}_path'.format(name=name), path) self._print_verbose(' {name:.<20} {path}'.format(name=name + ': ', path=path)) # Make any command line options override the config file