Hi Giovanni,

Thanks for your help.

I have a number of site specific scraping scripts that are managed
from a management script. The later is along the lines of:

import imp
import threading

site_script_list = ('google','bbc','ebay','amazon')
thread_dict = {}
search_str = "something"

for site in site_script_list:
    thread_list[site]=threading.Thread(name=site, target=run_all, args=
(site,))
    thread_list[site].start()

for site in thread_dict:

    thread_list[site].join()

def run_all(site):
    f, filename, description = imp.find_module(site)

    sitemodule = imp.load_module(site, f, filename, description)
    results = sitemodule.get_search_results(search_str)
    archiveresults(results)
    etc etc ......


Obviously it's a bit more complicated than this but it'll gives you
the general idea.

ALJ

On 17 Nov, 18:00, Giovanni Bajo <[EMAIL PROTECTED]> wrote:
> On Mon, 2008-11-17 at 02:54 -0800, Astley Le Jasper wrote:
> > Are there any issues with using the 'imp' module and PyInstaller? My
> > application isn't building the modules I'm importing using 'imp'. I've
> > also referred to them using the normal 'import' but they still don't
> > get included.
>
> I don't think imp.load() goes through the import hooks PyInstaller
> installs. If you elaborate on why you need imp.load(), I can try to
> suggest a workaround.
> --
> Giovanni Bajo
> Develer S.r.l.http://www.develer.com
--~--~---------~--~----~------------~-------~--~----~
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