Пример #1
0
        public async Task RunScript(string scriptPath, string[] scriptArgs = null)
        {
            /*
             * script      : Full path to the script to run with the interpreter
             * scriptArgs  : All string args will be passed to the python script
             */

            string[] args = new string[3] {
                flagString, scriptPath, GetArgString(scriptArgs)
            };

            await BatchFile.RunExeAsync(interpreter, args);
        }
Пример #2
0
        public int RunScriptStatic(string scriptPath, string[] scriptArgs = null)
        {
            /*
             * script      : Full path to the script to run with the interpreter
             * scriptArgs  : All string args will be passed to the python script
             */

            string[] args = new string[3] {
                flagString, scriptPath, GetArgString(scriptArgs)
            };

            return(BatchFile.RunExe(interpreter, args));
        }