You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abs_path = os.path.abspath(path).replace("\\", "/")
~~~~~~~~~~~~~~~^^^^^^
File "<frozen ntpath>", line 576, in abspath
TypeError: _path_normpath: path should be string, bytes or os.PathLike, not list
Problem background
In template_generation.py of uesgraphs custom_library will be treated as such: if custom_library: libs_to_load = [custom_library]
As result libs_to_load is a nested list
Possible solution
Change libs_to_load to:
libs_to_load = custom_library if isinstance(custom_library, list) else [custom_library]
so single libraries as well as multiple libraries packed to list will get processed
The text was updated successfully, but these errors were encountered:
Description
If one tries to use the template_generation script with:
Following error occurs:
Problem background
In template_generation.py of uesgraphs custom_library will be treated as such:
if custom_library: libs_to_load = [custom_library]
As result libs_to_load is a nested list
Possible solution
Change libs_to_load to:
libs_to_load = custom_library if isinstance(custom_library, list) else [custom_library]
so single libraries as well as multiple libraries packed to list will get processed
The text was updated successfully, but these errors were encountered: