Creating Python "executables" on Windows?

Robin Becker robin at jessikat.fsnet.co.uk
Fri Aug 18 07:04:05 EDT 2000


I've been experimenting with Gordon's installer and find that under
win98 at least it's doing absolutely the wrong thing wrt filename case.

I see in builder.log lines like
 ('rlpingo.pingoGD', 'c:\\python\\rlpingo\\pingogd.py', 'm'),

During the preliminary run of Simple.py I get the following error

    return imp.find_module(name, path)
NameError: Case mismatch for module name pingogd
(filename C:\Python\rlpingo\pingoGD.py)


which is entirely correct. I don't think this is all Gordon's fault as

>>> os.path.normcase(os.path.abspath('C:\\Python\\rlpingo\\pingoGD.py'))
'c:\\python\\rlpingo\\pingogd.py'
>>> 

ie maybe he should either be using normcase more carefully or perhaps 
rely more on __file__ as for me at least

>>> import rlpingo.pingoGD
>>> rlpingo.pingoGD.__file__
'C:\\Python\\rlpingo\\pingoGD.pyc'
>>> 
-- 
Robin Becker



More information about the Python-list mailing list