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

Исправление бага движка при запуске процесса с передачей переменных среды #743

Merged
merged 1 commit into from Apr 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ScriptEngine.HostedScript/Library/ProcessContext.cs
Expand Up @@ -244,6 +244,7 @@ public static ProcessContext Create(string cmdLine, string currentDir = null, bo
{
foreach (var kv in env)
{
sInfo.EnvironmentVariables.Remove(kv.Key.AsString());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не будет ругаться, если там нет такого ключа?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Эх, ты успел раньше вопрос написать, я как раз на всякий случай ответ вставлял :)

sInfo.EnvironmentVariables[kv.Key.AsString()] = kv.Value.AsString();
}
}
Expand Down