Question : Comment ajouter mes propres fonctions Python à PONX ?

Réponse : en important un module ; voici un exemple Object-Pal :
 
 
 
 
var
   oa oleauto
   str string
endvar
oa.open("Ponx.Mci") then

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.