[PyGreSQL] problem with executable using pgdb
Gregor Mosheh
gregor at hostgis.com
Thu Feb 22 11:20:32 EST 2007
> I checked it with this and another simple test program printing the
> result of a select statement, and both work fine for me.
How odd.
> What I do is adding the PostgreSQL bin directory (something like
> "C:\Program Files\PostgreSQL\8.2\bin") to the Windows PATH instead of
> copying the PostgreSQL dll's around. Can you try that?
Nope. I don't have the PostgreSQL package installed (copying the DLLs was
intended to avoid that), and the goal is to run this compiled executable
on a system that doesn't have Python or pgsql installed. So having an
executable with an outside dependency of the entire database installation
just wouldn't be acceptable for the customer.
I did come up with a method that worked. Basically, I bundle the entire
c:\Python25 and some registry entries (to point to the bundled Python)
into a InnoSetup program. This met their needs, since the disk space isn't
an issue, as much as the administrative oversight of installing additional
applications.
More information about the PyGreSQL
mailing list