The bad news is that Geoff's example code that confuses Python into
importing a class two times as two distinct things, relies on an os.chdir()
*in the middle* of various imports. This is bad because WebKit, when set up
via WebKit.cgi, doesn't do any such thing. It didn't even do it before my
The good news is that today's work tuned me into the implementation and I
was able to duplicate the problem with 40 lines of Python code in a package
structure that mimics Webware.
The file is at:
It's 843 bytes. It's set up just like WebKit, but obviously much smaller,
and based on a manufacturing paradigm.
I forgot a README, but it's obvious if you look through it:
The output clearly shows that the two references to Widget have different
pointer values. Very bad.
If we can beat on this thing and make it work, then we should be able to
apply the same fix to Webware.
Feel free to have a look: