Пример #1
0
 void Run(string[] args)
 {
     //TestMode();
     //return;
     Console.OutputEncoding = Encoding.ASCII;
     var cmd = new CmdLineHelper();
     _runner = new PyRunner(cmd.ParamAfterSwitch("command"),
         cmd.ParamAfterSwitch("script"),
         cmd.ParamAfterSwitch("args"),
         cmd.ParamAfterSwitch("workingDirectory"), cmd);
     _runner.Run();
     //Console.ReadKey();
 }
Пример #2
0
        void TestMode()
        {
            //  -script "TestScript.py" -args "status" -command "hg" -workingDirectory "d:\Dev\Openbox\Change Controls\GBS Reforecasts Integration"

            Console.OutputEncoding = Encoding.ASCII;
            var cmd = new CmdLineHelper();

            _runner = new PyRunner("notepad.exe",
                "TestScript.py",
                "test.txt",
                @"c:\temp", cmd);
            _runner.Run();
               // Console.ReadKey();
        }
Пример #3
0
        void Run(string[] args)
        {
            //TestMode();
            //return;
            Console.OutputEncoding = Encoding.ASCII;
            var cmd = new CmdLineHelper();

            _runner = new PyRunner(cmd.ParamAfterSwitch("command"),
                                   cmd.ParamAfterSwitch("script"),
                                   cmd.ParamAfterSwitch("args"),
                                   cmd.ParamAfterSwitch("workingDirectory"), cmd);
            _runner.Run();
            //Console.ReadKey();
        }
Пример #4
0
        void TestMode()
        {
            //  -script "TestScript.py" -args "status" -command "hg" -workingDirectory "d:\Dev\Openbox\Change Controls\GBS Reforecasts Integration"

            Console.OutputEncoding = Encoding.ASCII;
            var cmd = new CmdLineHelper();

            _runner = new PyRunner("notepad.exe",
                                   "TestScript.py",
                                   "test.txt",
                                   @"c:\temp", cmd);
            _runner.Run();
            // Console.ReadKey();
        }