binaryninja.os.getenv

getenv(key, default=None)

Get an environment variable, return None if it doesn’t exist. The optional second argument can specify an alternate default. key, default and the result are str.