-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow env OPENIMAGEIO_OPTIONS to set global OIIO::attribute()
Akin to how we have `OPENIMAGEIO_IMAGECACHE_OPTIONS` and `OPENIMAGEIO_TEXTURE_OPTIONS`. `OPENIMAGEIO_TEXTURE_OPTIONS` is a comma-separated list of name=val pairs that upon startup will seed the global options that are usually set by the OIIO::attribute() call. Along the way, I beefed up the OptParser to be able to handle both single and double quotes equally well. That lets you set an option that is a string, that itself contains quotes. Also document all of these options -- I realized the PDF docs don't talk about even the existing env variables.
- Loading branch information
Showing
3 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters