The example given in the documentation ( http://www.smartfoxserver.com/docs/inde ... python.htm ) about "importing module" and the destroy method does not work.
I get a NameError.
Because we do the import in the local scope of init() so we can't see the sys modules in the global scope and in the destroy scope... (erf there is too much scope
So you have to add in init() "global sys" and idem in destroy() and all will work fine
Thierry