asphalt.templating.utils
¶
-
asphalt.templating.utils.
package_to_directory
(package_path)¶ Translate a package/path specification into a real file system pathname.
Parameters: package_path (
str
) – a package name or a package/path specification likepackage.subpackage/directory/subdirectory
Return type: Returns: the translated path name
Raises: - ImportError – if the package cannot be imported
- LookupError – if the directory does not exist