コード例 #1
0
def create_search_path(
    search_path: List[str] = [], abspath: bool = False
) -> ConfigSearchPath:
    csp = ConfigSearchPath()
    csp.append("hydra", "pkg://hydra.conf")
    for sp in search_path:
        csp.append("test", sp if not abspath else os.path.realpath(sp))
    return csp
コード例 #2
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     search_path.append("combined_core_lib_config", "pkg://config")
     search_path.append("combined_core_lib_compose",
                        "pkg://hydra_docker-compose.yaml")
コード例 #3
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     # Appends the search path for this plugin to the end of the search path
     search_path.append("test_core_lib_config", "pkg://config")
     search_path.append("test_core_lib_compose", "pkg://hydra_docker-compose.yaml")
コード例 #4
0
ファイル: test_config_search_path.py プロジェクト: exic/hydra
def create_search_path(
    base_list: List[Tuple[Optional[str], Optional[str]]]
) -> ConfigSearchPath:
    csp = ConfigSearchPath()
    csp.config_search_path = [SearchPath(x[0], x[1]) for x in base_list]
    return csp
コード例 #5
0
def create_config_search_path(path: str) -> ConfigSearchPath:
    csp = ConfigSearchPath()
    csp.append(provider="test", path=path)
    return csp
コード例 #6
0
def create_search_path(base_list):
    csp = ConfigSearchPath()
    csp.config_search_path = [SearchPath(x[0], x[1]) for x in base_list]
    return csp
コード例 #7
0
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     # Appends the search path for this plugin to the end of the search path
     search_path.append(
         "hydra-example-launcher", "pkg://hydra_plugins.example_launcher.conf"
     )
コード例 #8
0
 def manipulate_search_path(self, search_path: ConfigSearchPath):
     search_path.append("meta-blocks", "pkg://meta_blocks.experiment.conf")
コード例 #9
0
ファイル: colorlog.py プロジェクト: ryantm/hydra
 def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
     # Appends the search path for this plugin to the end of the search path
     search_path.append("hydra-colorlog",
                        "pkg://hydra_plugins.hydra_colorlog.conf")