Environment variables
Detecting the system environment¶
The userenv module sets an environment variable, ISAMBARD_HOST, by default.
This allows you to programmatically detect which system your code is running on.
ISAMBARD_HOST is set to one of the following values:
Isambard 3Isambard 3 MACSIsambard AI P1/P2
For example, from the command line:
Or, in Python: