rail.utils.path_utils module

Utility functions

rail.utils.path_utils.find_rail_file(relpath)

Find a file somewhere in rail by searching the namespace path

This lets us avoid issues that the paths can be different depending on if we have installed things from source or not

Parameters:

relpath (str)

Return type:

str

rail.utils.path_utils.unfind_rail_file(abspath)

Go backwards from an absolute path to a rail file to the value that was passed to find_rail_file

Parameters:

abspath (str)

Return type:

str