MoI embedded inside CPython 3.91?

 From:  bemfarmer
10134.40 
The following code works in MoI. In MoI, press Tab, and paste the following code into MoI command window:

code:
var res = moi.filesystem.shellExecute('cmd /c C:\\Users\\orcha\\Desktop2\\printTest.py', '', true );
if ( res.output ) moi.ui.alert( res.output );


I created a new folder Desktop2, and placed the printTest.py python script in it.

An alternate Path and directory can be used. The printTest.py program needs to be placed in the Path and directory used.
The /c "switch parameter" is needed...
Windows 10 already knows (the Path) where the installed Python.exe program is located.

The output is a MoI alert box with the text message in it.

- Brian

Now I would like to run the gyroid python script and capture the .csv file...

EDITED: 28 Mar 2021 by BEMFARMER

Attachments: