# The BuiltIn library has a keyword for that. from robot.libraries.BuiltIn import BuiltIn def get_results_path(): return BuiltIn().get_variable_value("${RESULTS_PATH}")