[Zope-dev] Re: status of Zope versus zope?

Tim Peters tim at zope.com
Fri Jun 4 12:53:11 EDT 2004


[Martijn Faassen]
> Yes, I'm doing something much like that and it works fine on Linux. I'm
> just wondering how this de-confuses Python's import system on a
> case-insensitive file system.

Python imports are case-sensitive on all platforms (this wasn't always true,
but is true in recent Pythons).  What's impossible in a case-insensitive
filesystem is having two things (files or directories) in the same directory
whose names differ only in case.

I'm not sure that answers your question, but since it's the only answer
there is, you'll have to adjust your question to match <wink>.

To get concrete, if sys.path is ['/A', '/B'], files /A/Hello.py and
/B/HellO.py exist, A and B are otherwise empty, and you do

    import HellO

then /B/HellO.py will get loaded, Windows or not, and

    import hello

will fail, also Windows or not.




More information about the Zope-Dev mailing list