Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #31 from cbenhagen/fix-30
Browse files Browse the repository at this point in the history
Fix restarter on macOS and Linux
  • Loading branch information
JMSwag committed Nov 4, 2016
2 parents 88532b4 + 2471904 commit 950879a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyupdater/client/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ class Restarter(object):

def __init__(self, current_app, **kwargs):
self.current_app = current_app
self.is_win = sys.platform == 'win32'
self.data_dir = kwargs.get('data_dir')
self.bat_file = os.path.join(self.data_dir, 'update.bat')
self.vbs_file = os.path.join(self.data_dir, 'invis.vbs')
self.updated_app = kwargs.get('updated_app')
log.debug('Current App: %s', self.current_app)
self.is_win = sys.platform == 'win32'
if self.is_win is True:
self.data_dir = kwargs.get('data_dir')
self.bat_file = os.path.join(self.data_dir, 'update.bat')
self.vbs_file = os.path.join(self.data_dir, 'invis.vbs')
self.updated_app = kwargs.get('updated_app')
log.debug('Restart script dir: %s', self.data_dir)
log.debug('Update path: %s', self.updated_app)

Expand Down

0 comments on commit 950879a

Please sign in to comment.