py2exe and UPPER CASE file system

W

Werner Merkl

Hi,


my problem is, I try to use a py2exe compiled python script from a
CD-ROM. This should work, BUT the tool I use (or have to use) generates
only upper case file names on the CD-ROM.

For py2exe 0.4.1 and python 2.2 this worked fine... but the current
releases do not.

Any ideas or help?


Thanks in advance
Werner Merkl
 
T

Thomas Heller

Werner Merkl said:
Hi,


my problem is, I try to use a py2exe compiled python script from a
CD-ROM. This should work, BUT the tool I use (or have to use)
generates only upper case file names on the CD-ROM.

For py2exe 0.4.1 and python 2.2 this worked fine... but the current
releases do not.

I would say if it worked it was a bug ;-).

Does it work in newer versions when you set the PYTHONCASEOK environment
variable?

Thomas
 
W

Werner Merkl

Thomas said:
I would say if it worked it was a bug ;-).

Oops... I thought, this was by intention, because py2exe 0.4.1 has its
own module loader...
Does it work in newer versions when you set the PYTHONCASEOK environment
variable?
Yes, this would work, BUT if I start a Python EXE directly from CD, then
normally this variable is NOT set...

So I need to set it inside the Python EXE or run a C wrapper to set the
environment variable and than start my Python EXE.

BTW: I tried to "import os" or "import OS as os" to add
"os.environment['PYTHONCASEOK'] = '1'" inside, but this seemed not to work.


regards
Werner
 
C

Cliff Wells

Somehow I missed the original post, but what OS are you on that have to
use a tool that generates only uppercase filenames on the CD? If you're
on Windows, Linux, BSD, Solaris or most any modern OS, you should be
able to use cdrtools (cdrecord + mkisofs) which can generate
Rockridge/Joliet CD's with regular (long mixed case) filenames:

cdrecord homepage:
http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html

binaries for a lot of different systems here:
ftp://ftp.berlios.de/pub/cdrecord/ProDVD/

Regards,
Cliff
 
W

Werner Merkl

Cliff said:
Somehow I missed the original post, but what OS are you on that have to
use a tool that generates only uppercase filenames on the CD? If you're
on Windows, Linux, BSD, Solaris or most any modern OS, you should be
able to use cdrtools (cdrecord + mkisofs) which can generate
Rockridge/Joliet CD's with regular (long mixed case) filenames:
My problem is not a matter of operation systems. Windows can handle
upper and lower case, BUT I need to a CD mastering tool, which converts
all lower cases to upper cases.
cdrecord homepage:
http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html

binaries for a lot of different systems here:
ftp://ftp.berlios.de/pub/cdrecord/ProDVD/

Thanks for your advice, but I cannot change our mastering tool.


Regards
Werner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top