Fix presentation loading bug
This commit is contained in:
parent
cc98984ce4
commit
bfe1f9a8d5
1 changed files with 2 additions and 1 deletions
|
@ -153,11 +153,12 @@ Further arguments:
|
|||
processed["presentation"] = true
|
||||
|
||||
# Check if file exists
|
||||
if !FileAccess.file_exists(arg):
|
||||
if !FileAccess.file_exists(arg) and !DirAccess.dir_exists_absolute(arg):
|
||||
logger.error(core.misc.stringify_variables("Unable to parse argument %arg%: Invalid file path %arg%", { "arg": arg }))
|
||||
continue
|
||||
|
||||
# Update 'args'
|
||||
args["load_presentation"] = true
|
||||
args["presentation_path"] = arg
|
||||
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue