data_files = ['ScansionDictionary'],
and one of my modules contains the line
self.Dict = pickle.load(open('ScansionDictionary', 'rU'))
On Mac, this combination puts the data file inside Resources (inside Contents inside my app's bundle). On Windows it puts the file in the same ('dist') directory as the executable. (Is there a better, more integrated way to do it on Windows?) And when I try to run the executabble the pickle.load line generates this: "LookupError: no codec search functions registered: can't find encoding". How do I fix this?
Maybe a connnected question: what is the relation between the 'data_files' argument in a setup.py file (as ordained by distutils), and the 'resources' option to py2app?
Charles Hartman
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig