Don't require the Gui unless we are actually using it
This commit is contained in:
parent
759c1a5686
commit
67a5b7e105
|
@ -6,7 +6,6 @@ import random
|
||||||
import textwrap
|
import textwrap
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from Gui import guiMain
|
|
||||||
from Main import main
|
from Main import main
|
||||||
from Utils import is_bundled, close_console, output_path
|
from Utils import is_bundled, close_console, output_path
|
||||||
|
|
||||||
|
@ -232,6 +231,7 @@ def start():
|
||||||
# probably wants the gui. Users of the bundled build who want the command line
|
# probably wants the gui. Users of the bundled build who want the command line
|
||||||
# interface shouuld specify at least one option, possibly setting a value to a
|
# interface shouuld specify at least one option, possibly setting a value to a
|
||||||
# default if they like all the defaults
|
# default if they like all the defaults
|
||||||
|
from Gui import guiMain
|
||||||
close_console()
|
close_console()
|
||||||
guiMain()
|
guiMain()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
@ -252,6 +252,7 @@ def start():
|
||||||
logging.basicConfig(format='%(message)s', level=loglevel)
|
logging.basicConfig(format='%(message)s', level=loglevel)
|
||||||
|
|
||||||
if args.gui:
|
if args.gui:
|
||||||
|
from Gui import guiMain
|
||||||
guiMain(args)
|
guiMain(args)
|
||||||
elif args.count is not None:
|
elif args.count is not None:
|
||||||
seed = args.seed
|
seed = args.seed
|
||||||
|
|
Loading…
Reference in New Issue