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: 6b9ca89bbc [formerly f5c3b89dd2] [formerly 6b9ca89bbc [formerly f5c3b89dd2] [formerly e1415e3689 [formerly 1edbb1847a9dfda4fa7562972b70c8ca3f83f246]]]
Former-commit-id: e1415e3689
Former-commit-id: 5b58abe854 [formerly 5458f6956b]
Former-commit-id: 029369f3d5
This commit is contained in:
Bryan Kowal 2013-08-26 12:43:43 -05:00
parent ee53cc88fa
commit 1ae985d556
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;