Unable to read ${CURDIR} from within Custom Library

I have found that I can use os.path.dirname(BuiltIn().get_variable_value("${SUITE SOURCE}")) to get the proper location of the running script.