On Thu, Mar 29, 2012 at 2:52 PM, C Anthony Risinger <[email protected]> wrote: > On Thu, Mar 29, 2012 at 8:12 AM, C Anthony Risinger <[email protected]> wrote: >> On Mar 29, 2012 6:06 AM, "Roberto De Ioris" <[email protected]> wrote: >>> >>> Can you paste some 'simple' example ? Maybe i have not got the point >> >> I'm doing the first, but no __path__ exists at all :-( ... >> >> Yeah this all blew up at the last second before bed, I gathered stuff up and >> fired it off :-) >> >> It's buried in the output, but ill make a more specific example in about an >> hour -- I was aliasing a directory/package, then importing it: >> >> […] >> pymodule-alias = Self=/path/to/package-with-dashes/ >> module = Self >> […] > > ok check this out: > > http://n.xtfx.me/test-uwsgi-alias.tgz
ok, i stepped the code ... the problem is that the modules is compiled and imported: py_file_module = PyImport_ExecCodeModule(name, py_compiled_node); ... right BEFORE the __path__ is set. i was going to try and swap the two calls around, but the latter depends on the successful import, and im unsure how to add __path__ prior to executing the code object. -- C Anthony _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
