상속: MonoDevelop.Core.Execution.DotNetExecutionCommand
예제 #1
0
        // TODO - Research on the target runtime selection (if possible/doable/recommended).
        protected virtual PythonExecutionCommand CreateExecutionCommand(ConfigurationSelector configSel, PythonConfiguration configuration)
        {
            var ironPath = (FilePath)PropertyService.Get <string> ("IronPython.InterpreterPath");

            var command = new PythonExecutionCommand(ironPath)
            {
                Arguments            = IronManager.GetInterpreterArguments(configuration),
                WorkingDirectory     = BaseDirectory,
                EnvironmentVariables = configuration.GetParsedEnvironmentVariables(),
                Configuration        = configuration
            };

            if (!String.IsNullOrEmpty(configuration.ExtraPaths))
            {
                command.EnvironmentVariables [IronManager.ExtraPathsEnvironmentVariable] = configuration.ExtraPaths;
            }

            return(command);
        }
        // TODO - Research on the target runtime selection (if possible/doable/recommended).
        protected virtual PythonExecutionCommand CreateExecutionCommand(ConfigurationSelector configSel, PythonConfiguration configuration)
        {
            var ironPath = (FilePath)PropertyService.Get<string> ("IronPython.InterpreterPath");

            var command = new PythonExecutionCommand (ironPath) {
                Arguments = IronManager.GetInterpreterArguments (configuration),
                WorkingDirectory = BaseDirectory,
                EnvironmentVariables = configuration.GetParsedEnvironmentVariables (),
                Configuration = configuration
            };

            if (!String.IsNullOrEmpty (configuration.ExtraPaths))
                command.EnvironmentVariables [IronManager.ExtraPathsEnvironmentVariable] = configuration.ExtraPaths;

            return command;
        }