Le 19/06/2012 09:52, anatoly techtonik a écrit : > Here is one more problem - when module is executed as a script, it > loses its __name__, which becomes equal to '__main__'. PEP 395 "Qualified Names for Modules" tries to address this. http://www.python.org/dev/peps/pep-0395/ Regards, -- Simon Sapin