From 55f83a336749a6bd7ac57ee946067ee1f650715a Mon Sep 17 00:00:00 2001 From: Spencer Beckwith Date: Sun, 1 Dec 2024 07:47:16 -0700 Subject: [PATCH] Extract export path from output CLI option (#1145) --- src/Main.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Main.gd b/src/Main.gd index d253ce221..ece40f72d 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -104,7 +104,10 @@ some useful [SYSTEM OPTIONS] are: static func set_output(project: Project, next_arg: String) -> void: if not next_arg.is_empty(): - project.file_name = next_arg.get_basename() + project.file_name = next_arg.get_file().get_basename() + var directory_path = next_arg.get_base_dir() + if directory_path != ".": + project.export_directory_path = directory_path var extension := next_arg.get_extension() project.file_format = Export.get_file_format_from_extension(extension)