On Windows, you can set an environment globally by modifying the registry: [https://stackoverflow.com/questions/5246046/how-to-add-environment-variable-in-c](https://stackoverflow.com/questions/5246046/how-to-add-environment-variable-in-c)
Don't expect os.putEnv to do that ... it's not portable, and not what people expect.