MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_data_dir_path

Method get_data_dir_path

src/bonsai/bonsai/tool/blender.py:1782–1788  ·  view source on GitHub ↗

Get specified data path in data folder. If this path exists in user folder, it takes the precedence.

(cls, relative_path: Union[str, Path])

Source from the content-addressed store, hash-verified

1780
1781 @classmethod
1782 def get_data_dir_path(cls, relative_path: Union[str, Path]) -> Path:
1783 """Get specified data path in data folder.
1784 If this path exists in user folder, it takes the precedence."""
1785 custom_path = cls.get_user_data_dir() / relative_path
1786 if custom_path.exists():
1787 return custom_path
1788 return cls.get_internal_data_dir() / relative_path
1789
1790 @classmethod
1791 def get_data_dir_paths(cls, relative_dir_path: Union[str, Path], glob_pattern: str) -> Generator[Path, None, None]:

Callers 15

_executeMethod · 0.80
drawMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
_executeMethod · 0.80
parse_cssMethod · 0.80
createMethod · 0.80
add_view_titleMethod · 0.80
change_titleblockMethod · 0.80
__init__Method · 0.80

Calls 2

get_user_data_dirMethod · 0.80
get_internal_data_dirMethod · 0.80

Tested by

no test coverage detected