emiprep.util.modified_environ¶
-
emiprep.util.modified_environ(*remove, **update)[source]¶ Temporarily update the
os.environdictionary in-place.The
os.environdictionary is updated in-place so that the modification is sure to work in all situations.Parameters: *remove : list
Environment variables to remove.
**update : dict
Dictionary of environment variables and values to add/update.
References
This function was copied from https://stackoverflow.com/a/34333710/152439.