Steps to Implement or Execute Code
A. Calling a Python script from VB script.We should have two script files.
In VB we should have:
ScriptStart("C:\\...\\testPy.PY")
In Python script named testPy.PY:
dd.print("testVar")
B. Calling a Python script from Python script:
PY 1: Filename printhellodef.PY
def PrintHello():
print("Hello")
PY 2- the caller: Filename callprinthello.PY
import printhellodef
importlib.reload(printhellodef)
printhellodef.PrintHello()