comparison mercurial/windows.py @ 10239:8e4be44a676f

Find right hg command for detached process On Windows, Mercurial can be run from the python script of from a frozen executable. In the first case, we have to call the python interpreter since the script is not executable. Frozen executable can be called directly. Fix 3/3 for issue421
author Patrick Mezard <pmezard@gmail.com>
date Wed, 06 Jan 2010 21:11:58 +0100
parents 2f7a38f336f4
children d6512b3e9ac0
comparison
equal deleted inserted replaced
10238:e22695b4472f 10239:8e4be44a676f
350 os.environ, 350 os.environ,
351 os.getcwd(), 351 os.getcwd(),
352 STARTUPINFO()) 352 STARTUPINFO())
353 return pid 353 return pid
354 354
355 def gethgcmd():
356 return [sys.executable] + sys.argv[:1]
357
355 try: 358 try:
356 # override functions with win32 versions if possible 359 # override functions with win32 versions if possible
357 from win32 import * 360 from win32 import *
358 except ImportError: 361 except ImportError:
359 pass 362 pass