From c82753e4924d56b484d75d742cab40c7e1a741fd Mon Sep 17 00:00:00 2001 From: Sven Koehler Date: Sun, 22 Mar 2015 22:35:29 +0100 Subject: [PATCH] command line args need to parsed before fply can be imported --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index bfdd1ee..57cc0d2 100755 --- a/main.py +++ b/main.py @@ -1,6 +1,10 @@ #!/usr/bin/env python import config + +if __name__ == "__main__": + config.parseArguments() + import common.register import common.server import mirror.service @@ -17,5 +21,4 @@ def main(): pass if __name__ == "__main__": - config.parseArguments() main()