Add some more debug logging to figure out what's going on with the paths

This commit is contained in:
Raoul Snyman 2016-12-06 21:58:41 +02:00
parent 2f7e689c99
commit 77c9b883a9
1 changed files with 4 additions and 2 deletions

View File

@ -180,6 +180,7 @@ class Builder(object):
self._print_verbose(' {:.<20}: {}'.format('python: ', self.python))
self._print_verbose(' {:.<20}: {}'.format('script: ', self.script_path))
self._print_verbose(' {:.<20}: {}'.format('config: ', self.config_path))
self._print_verbose(' {:.<20}: {}'.format('config path: ', os.path.dirname(self.config_path)))
def setup_executables(self):
"""
@ -279,14 +280,15 @@ class Builder(object):
'-i', self.icon_path,
'-n', 'OpenLP',
self.openlp_script]
self._print_verbose(' {}'.format(cmd))
if not self.args.verbose:
cmd.append('--log-level=ERROR')
else:
cmd.append('--log-level=DEBUG')
if not self.args.release:
cmd.append('-d')
self._run_command(cmd, 'Error running PyInstaller')
self._print_verbose('... {}'.format(' '.join(cmd)))
output = self._run_command(cmd, 'Error running PyInstaller')
self._print_verbose(output)
def write_version_file(self):
"""