dagster.file_relative_path(dunderfile, relative_path)[source]

This function is useful when one needs to load a file that is relative to the position of the current file. (Such as when you encode a configuration file path in source file and want in runnable in any current working directory)

It is meant to be used like the following:

file_relative_path(__file__, ‘path/relative/to/file’)