Putting all the code from the current master branch of TWBlue

This commit is contained in:
2014-10-27 16:29:04 -06:00
parent 58c82e5486
commit 1af4a8b291
284 changed files with 58760 additions and 0 deletions

12
src/mysc/restart.py Normal file
View File

@@ -0,0 +1,12 @@
# -*- coding: cp1252
import sys, os, config
def restart_program():
""" Function that restarts the application if is executed."""
config.main.write()
args = sys.argv[:]
if not hasattr(sys, "frozen"):
args.insert(0, sys.executable)
if sys.platform == 'win32':
args = ['"%s"' % arg for arg in args]
os.execv(sys.executable, args)