Revision: 5319 Author: btongminh Date: 2008-05-07 10:09:52 +0000 (Wed, 07 May 2008)
Log Message: ----------- Only save the basename in the pid file
Modified Paths: -------------- trunk/pywikipedia/daemonize.py
Modified: trunk/pywikipedia/daemonize.py =================================================================== --- trunk/pywikipedia/daemonize.py 2008-05-06 22:43:12 UTC (rev 5318) +++ trunk/pywikipedia/daemonize.py 2008-05-07 10:09:52 UTC (rev 5319) @@ -42,7 +42,7 @@ return else: # Write out the pid - f = open(sys.argv[0] + '.pid', 'w') + f = open(os.path.basename(sys.argv[0]) + '.pid', 'w') f.write(str(pid)) f.close() os._exit(0)
pywikipedia-l@lists.wikimedia.org