Don't require the Gui unless we are actually using it

This commit is contained in:
Kevin Cathcart 2019-07-11 17:33:27 -04:00
parent 759c1a5686
commit 67a5b7e105
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,6 @@ import random
import textwrap
import sys
from Gui import guiMain
from Main import main
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
# interface shouuld specify at least one option, possibly setting a value to a
# default if they like all the defaults
from Gui import guiMain
close_console()
guiMain()
sys.exit(0)
@ -252,6 +252,7 @@ def start():
logging.basicConfig(format='%(message)s', level=loglevel)
if args.gui:
from Gui import guiMain
guiMain(args)
elif args.count is not None:
seed = args.seed