I'm still experimenting with the multipackage capability. It works fine (adapting the test4_multipackage), creating folders in the target folder. Now, I want to create shortcuts in the target folder, each pointing to an .exe in one of the package folders.

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 tried moving the import inside the function; this stopped the error, and I could print Dispatch.func_doc to see that the import had worked correctly, but no shortcut is created.)

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?

Thanks for any enlightenment,

--

Don Dwiggins
Advanced Publishing Technology


--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to