Skip to content
Snippets Groups Projects
Commit c4f3a9b0 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fixed non absolute path for config file argument.

parent cc74f709
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ import time ...@@ -7,7 +7,7 @@ import time
import logging import logging
import logging.config import logging.config
from optparse import OptionParser from optparse import OptionParser
from os.path import isfile from os.path import isfile, abspath
from daemon import DaemonContext from daemon import DaemonContext
...@@ -37,6 +37,7 @@ options, args = oparser.parse_args() ...@@ -37,6 +37,7 @@ options, args = oparser.parse_args()
if options.daemonize and not options.pidfile: if options.daemonize and not options.pidfile:
sys.exit(u'Please supply a pid file...') sys.exit(u'Please supply a pid file...')
options.config = abspath(options.config)
if not isfile(options.config): if not isfile(options.config):
sys.exit(u'Please supply a valid path to configuration file...') sys.exit(u'Please supply a valid path to configuration file...')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment