I have package structure that looks like this:
- ae
- util
util contains a method mkdir(dir) that, given a path, creates a directory. If the directory exists, no error is thrown; the method fails silently.
The directory ae and its parent directory are both on my PYTHONPATH. When I try to use this method in Python 2.6, everything is fine. However, Python 2.5 gives the following error:
util.mkdir(SOURCES)
AttributeError: 'module' object has no attribute 'mkdir'
Why is Python 2.6 able to find this module and its method with no problems, but Python 2.5 cannot?