resolve_import_path

Resolves a given path based on the repository structure to the working directory. Good for determining the path of imports and such.

Arguments

Returns

Example

- name: resolve_import_path
  arguments:
    path_to_resolve: <the-path-to-resolve>
    reference_path: <the-reference-path-to-help-with-resolution>
    preferred_extensions: ['.py', '.txt']
  returns: <the-resolved-path-to-the-path-to-resolve>

Last updated