Am 15.06.2011 21:17, schrieb Don Dwiggins:
I started by copying the createShortcut function from http://www.blog.pythonlibrary.org/2010/01/23/using-python-to-create-shortcuts/. This works well when executed in a separate script. However, when adding it to the .spec file (at the end), a curious thing happens: when executing createShortcut, I get an error claiming that "Dispatch" is undefined. (The same thing happens whether I declare the function at the top of the file or just before calling it.)

I do not know the multipackage test case, but I doubt, your approach is a good one.

Either you create the shortcut when packaging your program. Then why are you not simply copying shortcut file into your development space? This could be included into the package as a data file.

Or want the shortcut to be generated at install time. The the installer (e.g. NSIS) is your friend.
What I'd like to know, is what's going on in the .spec file that would cause this behavior? Is pyinstaller playing games with the namespace?
No. The .spec file is simply exec'd.

--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult mit Mitglied bei http://www.7-it.de


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to