Move outputpath handling in main(), create path if it doesn't exist

This commit is contained in:
Bonta-kun
2019-12-28 17:12:27 +01:00
parent 41009c85c7
commit 93f8a684f1
2 changed files with 8 additions and 4 deletions

View File

@@ -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