1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 15:39:49 +00:00

Compare commits

..

2 commits

Author SHA1 Message Date
Emmanouil Papadeas c54a11980f
Merge d9a56146fc into 55f83a3367 2024-12-01 19:57:49 +01:00
Spencer Beckwith 55f83a3367
Extract export path from output CLI option (#1145) 2024-12-01 16:47:16 +02:00

View file

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