Windows madness
Dave LeBlanc
whisper at oz.net
Tue Apr 3 20:37:25 EDT 2001
Naaah - it's worse then that!
It varies by Windows version.
On NT, the filesystem is case-insensitive, but Python isn't, so an
attempt to import tool when it's Tool on disk fails <sigh>.
Since I do my level best to avoid those program loaders that Microsoft
calls Windows 95/98/ME, I can't comment on the situation on those ....
errr... what DO you call something that pretends to be an OS but
isn't?
Feeling particularly Micro$crewed today...
Dave LeBlanc
On Tue, 03 Apr 2001 21:15:26 GMT, "David Allen" <mda at idatar.com>
wrote:
>I'm trying to find the cleanest way to get around some
>windows silliness. Advice is appreciated.
>
>I'm writing an application under UNIX using Tkinter
>that I want to be portable to Windows. As fate would
>have it, I have two files in the project with the
>same name that differ by case. Example:
>
>TOOL.py # Main module for the TOOL
>tool.py # Small script which just creates objects
> # the right way, starts the prog, etc.
>
>As you might guess, this causes problems when they're
>in the same directory. Furthermore, I can't even
>combine both of them into TOOL.py because when I
>unzip files on windows machines, it turns TOOL.py
>into "tool.py" and then my "import TOOL" fails
>since there's no file called "TOOL.py"
>
>Is windows seriously this obtuse that short of
>separating them by directory, I'm forced to merge
>them into tool.py? (I.e. I don't even have the option
>of using an all-uppercase filename)
>
>--
>David Allen
>http://opop.nols.com/
>----------------------------------------
>It may be that your whole purpose in life is simply to serve as a
>warning to others.
More information about the Python-list
mailing list