import statement is case sensitive
tim.one at home.com
Thu Feb 22 23:27:11 CET 2001
> Just wanted to let you know what I have found so far using Python
> under Windows/DOS.
> 1) I can get PythonWin import to be case-insensitive but only if I do
> an os.environ["PYTHONCASEOK"]="1" before the import (but after I
> import os in the correct case :)
> 2) I tried setting it at the DOS prompt (SET PYTHONCASEOK=1) but
> python.exe seems to ignore it.
Then you're not doing it correctly. Explain every step in detail, else
nobody can guess which part you're missing. Setting PYTHONCASEOK in some
random DOS box won't have any effect on PythonWin, if that's your complaint.
> 3) You can set View/Folder Options/View in Windows Explorer to allow
> all upper case filenames. But it really looks screwed up since many
> directories are in upper case. Very difficult to read.
Note that this option only affects how Explorer *displays* names. It has no
effect on how they're stored. BTW, I agree that this option makes things
harder to read, and I don't use it myself either.
> 4) python -h scrolls off the screen and there is no way to either
> redirect the output nor pipe it to MORE.EXE.I had to find the help in
> the book.
Your DOS box is too small, then. Right-click on the icon you use to launch
the DOS box, select Properties, then select the Screen tab, and select "50
lines" from the "Initial size" dropdown list (assuming you're running Win9X;
NT/2000 have more flexible options).
> The original problem i was faced had to do with mxODBC. He imports
> from ODBC (upper case) directories in his sample code. I know I can
> change his code but I this is the stuff that comes back to bite..
> Anyway I found a solution around the case issue and for now I have to
> deal with Tkinter and not working with PythonWin. Works with
> Does anyone have ideas why it doesnt work?
Sorry, don't know to what "it" refers at this point.
More information about the Python-list