From: <bra...@om...> - 2005-05-18 01:29:16
|
Sorry for the delayed response on this. It looks like the problem only happens under Python 2.4.1, not under 2.3.5. I'm running this on Mac OS 10.4.0. Alex Tweedly <al...@tw...> wrote on 05/13/2005 07:21:50 PM: > This comes from the line (around model.py line 212): > filename = sys.modules[frameClass.__module__].__file__ > # chop the .pyc or .pyo from the end > base, ext = os.path.splitext(filename) > filename = internationalResourceName(base) > I wonder if this is a difference with Python 2.4 (I'm still on 2.3.4) > > I added a debug line, to get: > filename = sys.modules[frameClass.__module__].__file__ > # chop the .pyc or .pyo from the end > print filename, parent, frameClass > base, ext = os.path.splitext(filename) > filename = internationalResourceName(base) > > to confirm that, for me, it did properly get the path name including > "/modules/propertyEditor". > > Could you add that same line, and then try it again - and also try > the normal resourceEditor to see what they each say ? Under Python 2.4.1 and wxPython 2.6: /OMS/dev/misc/newresourceEditorv0.3a/propertyEditor.py <__main__.ResourceEditor; proxy of C++ wxFrame instance at _0190c800_p_wxFrame> <class 'modules.propertyEditor.PropertyEditor'> Under Python 2.3.5 and wxPython 2.5.3.1: /OMS/dev/misc/newresourceEditorv0.3a/modules/propertyEditor.py <__main__.ResourceEditor; proxy of C++ wxFrame instance at _003e8500_p_wxFrame> <class 'modules.propertyEditor.PropertyEditor'> The same thing happens with the normal Resource Editor. I am using a PythonCard from CVS which is about a week old. |