def relative_path ( path ) : return os . path . join ( os . path . dirname ( __file__ ) , path )
best way to give file path in python
Return the given path relative to this file .
def relative_path(path):
    """
    Return the given path relative to this file.
    """
    return os.path.join(os.path.dirname(__file__), path)