Fix: change import path before importing settings module.

main
Vincent Driessen 12 years ago
parent a5134c48c8
commit a6e57dd7c0

@ -64,6 +64,9 @@ def read_config_file(module):
def main(): def main():
args = parse_args() args = parse_args()
if args.path:
sys.path = args.path.split(':') + sys.path
settings = {} settings = {}
if args.config: if args.config:
settings = read_config_file(args.config) settings = read_config_file(args.config)
@ -78,9 +81,6 @@ def main():
if args.sentry_dsn is None: if args.sentry_dsn is None:
args.sentry_dsn = settings.get('SENTRY_DSN', None) args.sentry_dsn = settings.get('SENTRY_DSN', None)
if args.path:
sys.path = args.path.split(':') + sys.path
setup_loghandlers(args) setup_loghandlers(args)
setup_redis(args) setup_redis(args)

Loading…
Cancel
Save