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

implement Target.initEnvironment() #2288

Merged
merged 2 commits into from
Apr 8, 2019
Merged

Conversation

matthid
Copy link
Member

@matthid matthid commented Apr 4, 2019

fixes #2283 by introducing a new API to parse the command line and set the environment.
Now you should use near the start of your script

Target.initEnvironment()

to initialize the target module.

The only other "way" that comes to mind is module initialization, but that depends on static class initialization of .NET and therefore can be a bit tricky or unexpected. Also, this way has the advantage that is not "breaking" or changing the semantics of existing scripts.

@matthid matthid merged commit 7329111 into release/next Apr 8, 2019
@yazeedobaid yazeedobaid deleted the implement_target_init branch January 31, 2022 19:46
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.

Environment variables passed in command line are not evaluated until targets execution
1 participant