From 67a5b7e105a80c5ff91da6ee950f32983f1a0506 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Thu, 11 Jul 2019 17:33:27 -0400 Subject: [PATCH] Don't require the Gui unless we are actually using it --- EntranceRandomizer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EntranceRandomizer.py b/EntranceRandomizer.py index da16e2a6..d87358e6 100755 --- a/EntranceRandomizer.py +++ b/EntranceRandomizer.py @@ -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