Mercurial > hg
diff hgext/inotify/server.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 | a3ad96ead8f0 |
children | d6512b3e9ac0 |
line wrap: on
line diff
--- a/hgext/inotify/server.py Wed Jan 06 21:11:58 2010 +0100 +++ b/hgext/inotify/server.py Wed Jan 06 21:11:58 2010 +0100 @@ -461,9 +461,9 @@ self.master.shutdown() if 'inserve' not in sys.argv: - runargs = [sys.argv[0], 'inserve', '-R', root] + runargs = util.hgcmd() + ['inserve', '-R', root] else: - runargs = sys.argv[:] + runargs = util.hgcmd() + sys.argv[1:] pidfile = ui.config('inotify', 'pidfile') if opts['daemon'] and pidfile is not None and 'pid-file' not in runargs: