Issue #2198 - completely override the Path and PythonPath in the environment.

- PythonPath is specific to CAVE and will not normally be set
- What is currently set in Path is not relevant because we are running ported code


Former-commit-id: 0ec2392c24 [formerly 3fa97d7819] [formerly 6b9ca89bbc] [formerly 6b9ca89bbc [formerly f5c3b89dd2]] [formerly 0ec2392c24 [formerly 3fa97d7819] [formerly 6b9ca89bbc] [formerly 6b9ca89bbc [formerly f5c3b89dd2]] [formerly e1415e3689 [formerly 6b9ca89bbc [formerly f5c3b89dd2] [formerly e1415e3689 [formerly 1edbb1847a9dfda4fa7562972b70c8ca3f83f246]]]]]
Former-commit-id: e1415e3689
Former-commit-id: 0bb97b1788 [formerly 1659386a9c] [formerly 5b58abe854] [formerly 7333f116358a0fec4ac92d4c73b8b1862bac6e28 [formerly 47dedaefabeda6c6ca4ce57a08b9555bae5e9e89] [formerly 5b58abe854 [formerly 5458f6956b]]]
Former-commit-id: f1335171a0249097405a83c2f546dc5041acbb3d [formerly caf5ae2a02e399f6e14aeaac73826d152ff92803] [formerly 1ae985d556 [formerly 029369f3d5]]
Former-commit-id: 1ae985d556
Former-commit-id: 30286d2f79
This commit is contained in:
Bryan Kowal 2013-08-26 12:43:43 -05:00
parent 85c6cf5bca
commit fa605221ef
3 changed files with 4 additions and 5 deletions

Binary file not shown.

View file

@ -56,11 +56,10 @@ namespace VizLauncher.com.raytheon.viz.launcher.process
{
ProcessStartInfo processStartInfo =
new ProcessStartInfo(this.constructProcessName(vizEnvironment.getLocation()));
processStartInfo.EnvironmentVariables.Remove(EnvironmentProperties.ENVIRONMENT_VARIABLE_PATH);
processStartInfo.EnvironmentVariables.Add(
EnvironmentProperties.ENVIRONMENT_VARIABLE_PATH, vizEnvironment.getPath());
processStartInfo.EnvironmentVariables.Add(
EnvironmentProperties.ENVIRONMENT_VARIABLE_PYTHON_PATH, vizEnvironment.getPythonPath());
processStartInfo.EnvironmentVariables[EnvironmentProperties.ENVIRONMENT_VARIABLE_PATH] =
vizEnvironment.getPath();
processStartInfo.EnvironmentVariables[EnvironmentProperties.ENVIRONMENT_VARIABLE_PYTHON_PATH] =
vizEnvironment.getPythonPath();
processStartInfo.UseShellExecute = false;
processStartInfo.Arguments = this.getCommandLineArguments();
processStartInfo.RedirectStandardOutput = true;