Setting environment variables

Hello, Having trouble setting environment variables through an application I’m installing on my open edx hosted server. Tried using os.environ['VAR'] = 'var' but it isn’t working any help will be much appreciated thank you.

@oma0256, the environment variables set from a process will only be accessible from the process itself and its children . So are you trying to set the environment variable in your app so that it is accessible by LMS/Studio etc.? Can you provide some more details?