1
0
mirror of https://gitlab.com/openlp/packaging.git synced 2024-12-22 13:02:50 +00:00

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

View File

@ -180,6 +180,7 @@ class Builder(object):
self._print_verbose(' {:.<20}: {}'.format('python: ', self.python)) self._print_verbose(' {:.<20}: {}'.format('python: ', self.python))
self._print_verbose(' {:.<20}: {}'.format('script: ', self.script_path)) self._print_verbose(' {:.<20}: {}'.format('script: ', self.script_path))
self._print_verbose(' {:.<20}: {}'.format('config: ', self.config_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): def setup_executables(self):
""" """
@ -279,14 +280,15 @@ class Builder(object):
'-i', self.icon_path, '-i', self.icon_path,
'-n', 'OpenLP', '-n', 'OpenLP',
self.openlp_script] self.openlp_script]
self._print_verbose(' {}'.format(cmd))
if not self.args.verbose: if not self.args.verbose:
cmd.append('--log-level=ERROR') cmd.append('--log-level=ERROR')
else: else:
cmd.append('--log-level=DEBUG') cmd.append('--log-level=DEBUG')
if not self.args.release: if not self.args.release:
cmd.append('-d') 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): def write_version_file(self):
""" """