Sep-28-2022, 06:41 PM
Added the directory where the Python program is located to the sys.path, then import the Python program.
import sys
file_dir = "c:\\Users\\dee\\Documents\\_Python"
sys.path.append( file_dir )
import Connection as conn
import sys
file_dir = "c:\\Users\\dee\\Documents\\_Python"
sys.path.append( file_dir )
import Connection as conn