Changeset 39:9d04ac37db89
- Timestamp:
- 03/08/12 15:41:55 (13 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
MLXMANIFEST
r38 r39 1 update1.txt 6 09f7e02f1290be211da707a266f153b32 1 runmlx.exe 64000 48360723d8abcd080cddcfb690daef60 2 newdir/update2.txt 29 42f4b2fbb107747f2aff8969bfe5b648 -
src/mlx/update.py
r38 r39 12 12 import subprocess 13 13 import hashlib 14 15 if os.name=="nt": 16 import win32api 14 17 15 18 #------------------------------------------------------------------------------ … … 426 429 serverSocket.listen(1) 427 430 428 process = subprocess.Popen([os.path.join(directory, "mlxupdate"), 429 str(port), manifestFile], 430 shell = os.name=="nt") 431 432 if os.name=="nt": 433 win32api.ShellExecute(0, "open", os.path.join(directory, "mlxupdate"), 434 str(port) + " " + manifestFile, "", 1) 435 else: 436 process = subprocess.Popen([os.path.join(directory, "mlxupdate"), 437 str(port), manifestFile], 438 shell = os.name=="nt") 431 439 432 440 (mlxUpdateSocket, _) = serverSocket.accept() … … 446 454 mlxUpdateSocket = None 447 455 448 process.wait() 456 if os.name!="nt": 457 process.wait() 458 449 459 except Exception, e: 450 460 print >> sys.stderr, "Failed updating:", str(e) … … 490 500 if fromGUI and not isDirectoryWritable(directory): 491 501 if listener.needSudo(): 492 sudoUpdate(directory, updateURL, listener, 493 updateManifest) 502 sudoUpdate(directory, updateURL, listener, updateManifest) 494 503 else: 495 504 updateFiles(directory, updateURL, listener, updateManifest,
Note:
See TracChangeset
for help on using the changeset viewer.