mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Move outputpath handling in main(), create path if it doesn't exist
This commit is contained in:
@@ -9,7 +9,7 @@ import shlex
|
||||
import sys
|
||||
|
||||
from Main import main
|
||||
from Utils import is_bundled, close_console, output_path
|
||||
from Utils import is_bundled, close_console
|
||||
|
||||
|
||||
class ArgumentDefaultsHelpFormatter(argparse.RawTextHelpFormatter):
|
||||
@@ -294,9 +294,6 @@ def parse_arguments(argv, no_defaults=False):
|
||||
def start():
|
||||
args = parse_arguments(None)
|
||||
|
||||
if args.outputpath and os.path.isdir(args.outputpath):
|
||||
output_path.cached_path = args.outputpath
|
||||
|
||||
if is_bundled() and len(sys.argv) == 1:
|
||||
# for the bundled builds, if we have no arguments, the user
|
||||
# probably wants the gui. Users of the bundled build who want the command line
|
||||
|
Reference in New Issue
Block a user