Mercurial > templog
diff py/tempserver.py @ 174:c49d87bb81b9
fix to absolute path for lockfile, --daemon does chdir("/")
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 25 Jul 2013 08:03:14 +0800 |
parents | 5821c5fab919 |
children | be579bcf3c7f |
line wrap: on
line diff
--- a/py/tempserver.py Fri Jun 14 23:32:46 2013 +0800 +++ b/py/tempserver.py Thu Jul 25 08:03:14 2013 +0800 @@ -103,7 +103,8 @@ def main(): setup_logging() - pidpath = os.path.join(os.path.dirname(__file__), 'tempserver.pid') + heredir = os.path.abspath(os.path.dirname(__file__)) + pidpath = os.path.join(heredir, 'tempserver.pid') pidf = lockfile.pidlockfile.PIDLockFile(pidpath, threaded=False) try: pidf.acquire(0)