Import a named object from a module in the context of this function.
try to generate relative file path with given wildcard
check a file path for a wildcard and replace it to get the abs path
Bases: Exception
Exception
Raised when the file does not exists
Raised when the path could not be imported