Skip to content

Commit

Permalink
Autorestart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emilerl committed Nov 17, 2011
1 parent 1a56ee3 commit 5db299b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyplcli/pyplcli.py
Expand Up @@ -240,8 +240,7 @@ def update(*args):
sys.stdout.flush()
disconnect()
save_state()
os.execl("/usr/bin/env","python",os.path.join(os.getcwd(),sys.argv[0]))

subprocess.Popen(["/usr/bin/env","python",os.path.join(os.getcwd(),sys.argv[0])])
except:
print c.red("Error: ") + c.white("Could not update automatic. Run manual update")
else:
Expand Down

0 comments on commit 5db299b

Please sign in to comment.