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:
7
Main.py
7
Main.py
@@ -22,6 +22,13 @@ from Utils import output_path, parse_names_string
|
||||
__version__ = '0.6.3-pre'
|
||||
|
||||
def main(args, seed=None):
|
||||
if args.outputpath:
|
||||
try:
|
||||
os.mkdir(args.outputpath)
|
||||
except OSError:
|
||||
pass
|
||||
output_path.cached_path = args.outputpath
|
||||
|
||||
start = time.process_time()
|
||||
|
||||
# initialize the world
|
||||
|
Reference in New Issue
Block a user