get_hubconf_dir_from_cfg#

get_hubconf_dir_from_cfg(cfg, parent: Optional[str] = '') str[source]#

Determine destination directory name from an ExternalModuleConfig.

If a parent path is provided, the dir name is appended to it.

Parameters
  • cfg (ExternalModuleConfig) – an ExternalModuleConfig

  • parent (str, optional) – Parent path. Defaults to ‘’.

Returns

directory name or path

Return type

str