Changeset 38:08f7e6592452 for src/mlx/update.py
- Timestamp:
- 03/04/12 09:35:01 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/update.py
r37 r38 12 12 import subprocess 13 13 import hashlib 14 15 if os.name=="nt":16 import win32api17 14 18 15 #------------------------------------------------------------------------------ … … 501 498 #------------------------------------------------------------------------------ 502 499 503 def restart():504 """Restart the program."""505 programPath = os.path.join(os.path.dirname(sys.argv[0]),506 "runmlx.exe" if os.name=="nt" else "runmlx.sh")507 if os.name=="nt":508 programPath = win32api.GetShortPathName(programPath)509 os.execl(programPath, programPath)510 511 #------------------------------------------------------------------------------512 513 500 def updateProcess(): 514 501 """This is called in the child process, when we need a child process."""
Note:
See TracChangeset
for help on using the changeset viewer.