Importieren Sie eine Datei in eine andere Python
import os
os.chdir("**Put here the directory where you have the file with your function**")
from file import function
os.chdir("**Put here the directory where you were working**")
Odd Osprey