Re: Plugin system, RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import

2009-01-27 Thread Gabriel Genellina
En Mon, 26 Jan 2009 17:06:20 -0200, Torsten Mohr tm...@s.netic.de escribió: So mymodule is actually a package. Packages should *not* appear in sys.path. Oh, how does it find modules then? I thought that would be PYTHONPATH or sys.path ? The directory CONTAINING file foo.py must be in

Re: Plugin system, RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import

2009-01-26 Thread Torsten Mohr
Hello, Basically, this here works but gives a warning: RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import here = os.path.abspath('.') (Unrelated to the main question, but you probably want to use os.path.dirname(os.path.abspath(__file__)) instead - the

Plugin system, RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import

2009-01-25 Thread Torsten Mohr
Hi, i try to write a plugin system that i want to use to let users extend a module that i write. Within the module there is an extension loader that loads an extension module. This extension module should be able to import modules from my system, which provides some extensions. Basically, this

Re: Plugin system, RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import

2009-01-25 Thread Gabriel Genellina
En Sun, 25 Jan 2009 04:55:47 -0200, Torsten Mohr tm...@s.netic.de escribió: i try to write a plugin system that i want to use to let users extend a module that i write. Within the module there is an extension loader that loads an extension module. This extension module should be able to