If it is Windows use py2exe and Inno Installer to create an installation program that does this for you. If it is another OS, you need to put your modules into a subdirectory of site-packages and then Python will be able to see your modules. If you have a lot of modules you might consider turning them into a package.
-Larry [EMAIL PROTECTED] wrote: > Okay, so in my li'l python script I'm importing a few 3rd party modules > that I have installed on my comp. I need to distribute this script to > several other people, but I won't have access to install the modules on > their comp's. I'm thinking I'll include these modules with my script > and deliver them as a bundle. When I write my script, is there a way to > declare the import statements and specify a relative path to where the > modules are located? > > I know this is wrong syntax, but I think it demonstrates what I'm > trying to do: > > import myModule path = /modules/myModule > import myModule2 path = /modules/myModule2 > > Something like that. Is it possible? > > -Thx > -- http://mail.python.org/mailman/listinfo/python-list