From: Pedro A. a. s. <uf...@uf...> - 2008-12-19 23:41:29
|
While trying to make a standalone windows executable for Babel[1], I've stumbled upon a problem. Babel uses some pickled *.dat files from inside it's module tree, which don't initially get included by py2exe. I've been able to override that with the data_files option, however, when trying to use the resulting executable I get the following error: WindowsError: [Error 3] The system cannot find the path specified: 'C:\\Documents and Settings\\Win2K1\\My Documents\\Projects\\Babel\\dist\\pybabel.exe\\babel\\localedata/*.*' The line of the problematic code is this[2] one. Babel uses os.path.dirname(__file__) to get the module's path which from there we can know where the data files are. How can I make this work? [1] - http://babel.edgewall.org/ [2] - http://babel.edgewall.org/browser/trunk/babel/localedata.py#L56 -- Pedro Algarvio __ ___ ___ _______ ___ __ | Y .' _| _ .-----.' _| |_ .-----.----.-----. |. | | _| 1___| _ | _| _|__| _ | _| _ | |. | |__| |____ |_____|__| |____|__|_____|__| |___ | |: 1 | |: 1 | |_____| |::.. . | |::.. . | ufs [AT] ufsoft [DOT] org `-------' `-------' ufs [AT] sapo [DOT] pt |