Skip to content

Commit

Permalink
[GUI] fixed issue #351
Browse files Browse the repository at this point in the history
  • Loading branch information
danielepantaleone committed Sep 15, 2015
1 parent 6c70f20 commit c1d8646
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions b3/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,11 @@ def start(self):
program += ' --restart'

else:
executables = {'nt': 'b3_run.exe', 'darwin': 'b3_run', 'linux':'b3_run'}
if b3.getPlatform() == 'darwin':
program = '"%s" --config "%s" --console' % (sys.executable, self.config_path)
program = '"%s" --config "%s" --console' % (executables[b3.getPlatform()], self.config_path)
else:
program = '%s --config %s --console' % (sys.executable, self.config_path)
program = '%s --config %s --console' % (executables[b3.getPlatform()], self.config_path)

LOG.info('attempt to start %s process: %s', self.name, program)

Expand Down Expand Up @@ -681,4 +682,4 @@ def __lt__(self, other):


from b3.gui.dialogs import STDOutDialog
from b3.gui.widgets import MainWindow
from b3.gui.widgets import MainWindow

0 comments on commit c1d8646

Please sign in to comment.