Diez B. Roggisch wrote: > Tod Olson schrieb: >> Anyone have advice for importing the logging module using MacPython >> 2.4.3? >> >> MacPython installs the logging module in: >> >> /Library/Frameworks/Python.framework/Versions/2.4/lib/logging/ > > On my machine, that is > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/logging
That's good to hear, as it agrees with the other Python installations I've examined. That locations makes much more sense than where it landed on my machine. >> There's an __init__.py there and everything, but this directory is not >> in sys.path. I add it to sys.path as follows: >> >> >>> sys.path.append(os.path.join(sys.prefix, 'lib', 'logging')) >> >>> print sys.path[-1] >> /Library/Frameworks/Python.framework/Versions/2.4/lib/logging > > > Which is wrong - you'd have to add the path without the logging part! Great, thanks! -Tod -- http://mail.python.org/mailman/listinfo/python-list