mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Fix support passing folder to get_script_info() to get the git info
This commit is contained in:
parent
8adbf5ae00
commit
eb09b4646c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user