Adding environmental variable in Python script

Perhaps looking for this (after importing os):

os.environ["VARIABLE"]="/path/to/program"

This is needed for example to set the jref path in order for multidrizzle package to run through a script.

Leave a Reply

Your email address will not be published. Required fields are marked *