Skip to main content

to_module_path

Function to_module_path 

Source
pub fn to_module_path(package: &Path, path: &Path) -> Option<Vec<String>>
Expand description

Create a module path from a (package, path) pair.

For example, if the package is foo/bar and the path is foo/bar/baz.py, the call path is ["baz"].