On StackOverflow, I asked if it was possible to package a command-line tool <http://stackoverflow.com/questions/13998830/include-pdftk-in-a-distributable-python-module> (specifically pdftk and gsview) with a Python script that used them (just on Windows). One answer suggested PyInstaller, but I'm still not certain that willl work, since I'm not using ctypes to access the libraries (I'm using subprocess.call to access the tools - they're on my system path). Can I just include pdftk as a resource file and dump it into a directory with the script?

I'm over my head on this one - thanks for any guidance you can provide.
Hi,

I am packaging mencoder.exe with my app, it works just fine. Under Windows, the exe's directory is added automatically to the path, so you just call the executable.

See my PyInstaller spec file http://bazaar.launchpad.net/~eudoxos/woo/trunk/view/head:/woo.pyinstaller.spec#L67 and how is it called via subprocess.call then: http://bazaar.launchpad.net/~eudoxos/woo/trunk/view/head:/py/utils.py#L416

HTH, Vaclav

--
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