Mercurial > templog
changeset 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 | 964c32e9f8a2 |
children | 33ed66a7ea0b |
files | py/tempserver.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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)