Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow env OPENIMAGEIO_OPTIONS to set global OIIO::attribute() #2128

Merged
merged 1 commit into from
Jan 12, 2019

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Jan 2, 2019

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.

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.
@lgritz lgritz merged commit 06e1237 into AcademySoftwareFoundation:master Jan 12, 2019
@lgritz lgritz deleted the lg-options branch January 12, 2019 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant