summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4532095)
raw | patch | inline | side by side (parent: 4532095)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 25 Oct 2003 11:20:17 +0000 (11:20 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 25 Oct 2003 11:20:17 +0000 (11:20 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1936 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/scripts/roundup_server.py | patch | blob | history |
index be5e5696ad571459f6121ad74af4ab2bc464b6f2..97b6a5d203f957ae1c22fdcbd5b8904733696a8d 100644 (file)
#
""" HTTP Server that serves roundup.
-$Id: roundup_server.py,v 1.29 2003-10-10 00:40:16 richard Exp $
+$Id: roundup_server.py,v 1.30 2003-10-25 11:20:17 jlgijsbers Exp $
"""
# python version check
os.dup2(devnull, 1)
os.dup2(devnull, 2)
-def abspath(path):
- ''' Make the given path an absolute path.
-
- Code from Zope-Coders posting of 2002-10-06 by GvR.
- '''
- if not os.path.isabs(path):
- path = os.path.join(os.getcwd(), path)
- return os.path.normpath(path)
-
def run():
''' Script entry point - handle args and figure out what to to.
'''
elif opt == '-p': port = int(arg)
elif opt == '-u': user = arg
elif opt == '-g': group = arg
- elif opt == '-d': pidfile = abspath(arg)
- elif opt == '-l': logfile = abspath(arg)
+ elif opt == '-d': pidfile = os.path.abspath(arg)
+ elif opt == '-l': logfile = os.path.abspath(arg)
elif opt == '-h': usage()
elif opt == '-N': RoundupRequestHandler.LOG_IPADDRESS = 0