We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f4662 commit f02af19Copy full SHA for f02af19
1 file changed
PyCS.cs
@@ -399,6 +399,27 @@ public void Pip(string[] args)
399
}
400
401
402
+ public void PipLocal(string[] args)
403
+ {
404
+ ProcessStartInfo run0 = new ProcessStartInfo();
405
+ run0.FileName = "python3_12\\Scripts\\pip.exe";
406
+ run0.Arguments = "install " + string.Join(" ", args) + " --no-index --find-links /";
407
+ run0.UseShellExecute = false;
408
+ run0.RedirectStandardOutput = true;
409
+ run0.CreateNoWindow = true;
410
+ using (Process process = Process.Start(run0))
411
412
+ using (StreamReader reader = process.StandardOutput)
413
414
+ string result = reader.ReadToEnd();
415
+ if (console)
416
417
+ Console.WriteLine(result);
418
+ }
419
420
421
422
+
423
public void Run(string script)
424
{
425
if (RunDone)
0 commit comments