I have some settings-type global vars that I\'d like to be able to access from Python code. For example:
pybot --variable RESULTS_PATH:/wherever/this/points
You will want to use rf's BuiltIn library, for reference read the documentation as found here. This provides the keywords that are built into Robot Framework and so should reliably stay usable:
from robot.libraries.BuiltIn import BuiltIn
results_path = BuiltIn().get_variable_value("${RESULTS_PATH}")