Get specified data path in data folder. If this path exists in user folder, it takes the precedence.
(cls, relative_path: Union[str, Path])
| 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]: |
no test coverage detected