From: <bra...@om...> - 2005-05-18 20:55:20
|
Alex Tweedly wrote on 05/18/2005 09:13:15 AM: > Hmmm - baffling. Could you put this script in your resourceEditor > directory, and try it (with each version). > #!/usr/bin/python > > import sys, os > from modules.propertyEditor import PropertyEditor > > filename = sys.modules[PropertyEditor.__module__].__file__ > print filename > > print os.getcwd(), os.listdir(".") Ok, I created a script called alexTest.py and put it in /OMS/dev/pythonPackages/PythonCard/tools/resourceEditor. While in that directory, I typed: python alexTest.py (this runs Python 2.3.5) Here is the output: -------------------- /OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/modules/propertyEditor.py /OMS/dev/pythonPackages/PythonCard/tools/resourceEditor ['.cvsignore', 'alexTest.py', 'CVS', 'images', 'modules', 'readme.txt', 'resourceEditor.py', 'resourceEditor.rsrc.py', 'templates'] -------------------- Then I typed: python2.4 alexTest.py. It seemed to hang for about a minute, without generating any output. I typed control-C, and got the following traceback: ---------------- ^CTraceback (most recent call last): File "alexTest.py", line 4, in ? from modules.propertyEditor import PropertyEditor File "/OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/modules/propertyEditor.py", line 8, in ? from PythonCard import dialog, font, model, registry, util File "/OMS/dev/pythonPackages/PythonCard/model.py", line 47, in ? import debug File "/OMS/dev/pythonPackages/PythonCard/debug.py", line 20, in ? from wx import py as PyCrust File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/py/__init__.py", line 7, in ? import buffer File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/py/buffer.py", line 7, in ? from interpreter import Interpreter File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/py/interpreter.py", line 10, in ? import dispatcher File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/py/dispatcher.py", line 9, in ? import weakref File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/weakref.py", line 14, in ? from _weakref import ( KeyboardInterrupt --------------- |