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