Ignore:
Timestamp:
03/04/12 09:35:01 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The status icon is now hidden properly when the program quits, and made restarting nicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/update.py

    r37 r38  
    1212import subprocess
    1313import hashlib
    14 
    15 if os.name=="nt":
    16     import win32api
    1714
    1815#------------------------------------------------------------------------------
     
    501498#------------------------------------------------------------------------------
    502499
    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 
    513500def updateProcess():
    514501    """This is called in the child process, when we need a child process."""
Note: See TracChangeset for help on using the changeset viewer.