1. You need Visual Studio code, see
https://code.visualstudio.com/5. Now you can load your existing python script and add the following lines:
RootPath = r'C:\Users\Public\Documents\Metas.Vna.Tools\Projects\01_Basic_Example_N(f-m)'
VNAToolsPath = r'C:\Program Files (x86)\METAS\Metas.Vna.Tools'
import sys
sys.path.append(VNAToolsPath)
6. Or you create a new script form the following template:
RootPath = r'C:\Users\Public\Documents\Metas.Vna.Tools\Projects\01_Basic_Example_N(f-m)'
VNAToolsPath = r'C:\Program Files (x86)\METAS\Metas.Vna.Tools'
import sys
sys.path.append(VNAToolsPath)
import clr
clr.AddReference('System.Windows.Forms')
clr.AddReference('Metas.Vna.Tools')
from System.Threading import Thread
from System.Windows.Forms import MessageBox
from Metas.Vna.Tools import Script
s = Script(RootPath)
Be aware that VNA Tools script engine is using IronPython and the above example is using CPython with the Pythonnet package.