#NEWLINE# def GetDBPathRelativeToCurrentDirectory( filepath ) : #NEWLINE# #INDENT# database_dir = os . path . dirname ( FindFileInDirectoryOrAncestors ( redhawk . GetDBName ( ) , os . curdir ) ) #NEWLINE# abs_filepath = os . path . join ( database_dir , filepath ) #NEWLINE# return os . path . relpath ( abs_filepath , os . curdir )