I have the small script below that I try to test:
importsysdefpre_save(value, numb):
ifvalue=="value":
return("accepted by Python script "+sys.version)
else:
return("refused by Python script"+sys.version)When I do a py.RunSrc(ctx, pythonCode, "", nil), I get "AttributeError: "'module' has no attribute 'pre_save'""
I have the small script below that I try to test:
When I do a
py.RunSrc(ctx, pythonCode, "", nil), I get "AttributeError: "'module' has no attribute 'pre_save'""