Source code for shared

from onegov.core.utils import module_path


[docs] def asset(path: str) -> str: """ Returns the absolute path to an asset path relative to this module. """ return module_path('onegov.shared', 'assets' + '/' + path.lstrip('/'))