|
@ -149,6 +149,9 @@ class ImageProcessor: |
|
|
def get_namespace_by_path(self, path: str) -> ImageProcessorNamespace: |
|
|
def get_namespace_by_path(self, path: str) -> ImageProcessorNamespace: |
|
|
return self.namespaces[path.split(":")[0] if ":" in path else ""] |
|
|
return self.namespaces[path.split(":")[0] if ":" in path else ""] |
|
|
|
|
|
|
|
|
|
|
|
def get_path_without_namespace(self, path: str) -> str: |
|
|
|
|
|
return ":".join(path.split(":")[1:]) |
|
|
|
|
|
|
|
|
def get_searcher_by_path(self, path: str, rel_dir: str, source_dir: str) -> ImageProcessorNamespaceSearcher: |
|
|
def get_searcher_by_path(self, path: str, rel_dir: str, source_dir: str) -> ImageProcessorNamespaceSearcher: |
|
|
return ImageProcessorNamespaceSearcher(self.get_namespace_by_path(path), rel_dir, source_dir) |
|
|
return ImageProcessorNamespaceSearcher(self.get_namespace_by_path(path), rel_dir, source_dir) |
|
|
|
|
|
|
|
|