Skip to content

Commit

Permalink
start server after update
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanisław committed May 9, 2018
1 parent b2adf89 commit 7acbb46
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions assets/python/server/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def update(self, latest_release):

self.unpack(path)
self.run_postinstall()
self.start_server()

else:
logger.warn('This is a development environment. Please use git instead')
Expand All @@ -158,7 +159,9 @@ def run_postinstall(self):
logger.info("Spawning pip3...")
pip = subprocess.run(['sudo', 'pip3', 'install', '-r', '/home/pi/Turtle-Rover-Mission-Control/requirements.txt'])

def start_server(self):
subprocess.Popen(['turtle'])


updater = Updater()
updater.check()
if __name__ == '__main__':
updater = Updater()
updater.check()

0 comments on commit 7acbb46

Please sign in to comment.