Bundling an application with third-party modules

Serge Orlov Serge.Orlov at gmail.com
Wed Jun 14 20:20:24 EDT 2006


Ben Finney wrote:
> > 2. An Installshield-type installer can place files (essentially)
> > wherever you want them
>
> That's a large part of my question. How can I lay out these modules
> sensibly during installation so they'll be easily available to, but
> specific to, my application?

Put them in a directory "lib" next to the main module and start the
main module with the following blurb:
------------------------------------------------
import sys, os
sys.path.insert(1, os.path.join(sys.path[0],"lib"))
------------------------------------------------




More information about the Python-list mailing list