Changeset 247:12a62baf908f for src/mlx/mlx.py
- Timestamp:
- 06/12/12 18:30:23 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/mlx.py
r182 r247 7 7 import os 8 8 import sys 9 10 #-------------------------------------------------------------------------------------- 11 12 instance = None 9 13 10 14 #-------------------------------------------------------------------------------------- … … 24 28 def restart(args = []): 25 29 """Restart the program with the given arguments.""" 26 print "Restarting with args", args30 #print "Restarting with args", args 27 31 programPath = os.path.join(os.path.dirname(sys.argv[0]), 28 32 "runmlx.exe" if os.name=="nt" else "runmlx.sh") … … 38 42 args = [programPath] + args 39 43 44 instance.close() 40 45 os.execv(programPath, args) 41 46 … … 46 51 from singleton import SingleInstance, raiseCallbackWrapper 47 52 53 global instance 48 54 instance = SingleInstance("mlx", raiseCallbackWrapper) 49 55 if not instance: return
Note:
See TracChangeset
for help on using the changeset viewer.