GameDevWare.Charon.Utils.ToolExecutionOptions.ToolExecutionOptions C# (CSharp) Method

ToolExecutionOptions() public method

public ToolExecutionOptions ( string executablePath ) : System
executablePath string
return System
        public ToolExecutionOptions(string executablePath, params string[] arguments)
        {
            this.StartInfo = new ProcessStartInfo(executablePath)
            {
                Arguments = ConcatArguments(arguments),
                UseShellExecute = false,
                WorkingDirectory = Path.GetFullPath("./"),
                EnvironmentVariables =
                {
                    { "UNITY_PROJECT_PATH", Path.GetFullPath("./").TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar) }
                },
                CreateNoWindow = true
            };
            this.WaitForExit = true;
            this.TerminationTimeout = TimeSpan.FromSeconds(5);
        }