move debug setting, remove debug print
This commit is contained in:
3
pyfa.py
3
pyfa.py
@@ -30,6 +30,7 @@ usage = "usage: %prog [--root]"
|
||||
parser = OptionParser(usage=usage)
|
||||
parser.add_option("-r", "--root", action="store_true", dest="rootsavedata", help="if you want pyfa to store its data in root folder, use this option", default=False)
|
||||
parser.add_option("-w", "--wx28", action="store_true", dest="force28", help="Force usage of wxPython 2.8", default=False)
|
||||
parser.add_option("-d", "--debug", action="store_true", dest="debug", help="Set logger to debug level.", default=False)
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
@@ -79,6 +80,8 @@ if __name__ == "__main__":
|
||||
# Configure paths
|
||||
if options.rootsavedata is True:
|
||||
config.saveInRoot = True
|
||||
|
||||
config.debug = options.debug
|
||||
config.defPaths()
|
||||
|
||||
# Basic logging initialization
|
||||
|
||||
Reference in New Issue
Block a user