Fix support passing folder to get_script_info() to get the git info

This commit is contained in:
allegroai 2024-06-30 09:17:44 +03:00
parent 8adbf5ae00
commit eb09b4646c

View File

@ -1052,7 +1052,7 @@ class ScriptInfo(object):
raise ScriptInfoError("Script file {} could not be found".format(filepaths)) raise ScriptInfoError("Script file {} could not be found".format(filepaths))
scripts_dir = [f.parent for f in scripts_path] scripts_dir = [f if f.is_dir() else f.parent for f in scripts_path]
def _log(msg, *args, **kwargs): def _log(msg, *args, **kwargs):
if not log: if not log: