Question : Comment ajouter mes propres fonctions Python à PONX ?
str="global mextension
import mextension"
oa.PRun(str)
oa.close()
Msginfo("Etape","Intermédiaire")
oa.open("Ponx.Mci")
str="global mextension
mextension.mafonction('abc')"
oa.PRun(str)
oa.close()
Ici, le module Python s'appelle
mextension et il contient une fonction mafonction.
L'importation est à faire une seule fois par session Paradox.