# HG changeset patch # User Matt Johnston # Date 1374710594 -28800 # Node ID c49d87bb81b9c85246789fe148f4e25d666a02a1 # Parent 964c32e9f8a2d64552b67ad8195feab35404fa16 fix to absolute path for lockfile, --daemon does chdir("/") diff -r 964c32e9f8a2 -r c49d87bb81b9 py/tempserver.py --- 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)