20
20
from optparse import OptionParser
22
24
home = os.path.realpath(os.path.dirname(__file__))
23
25
default_pidfile = os.path.join(home, 'loggerhead.pid')
25
27
parser.add_option('-p', '--pidfile', dest="pidfile", default=default_pidfile,
28
30
options, args = parser.parse_args()
33
35
f = open(options.pidfile, 'r')