If you are trying to run a separate script, but need to access some of your TG app modules (model.py for instance) you just need to customise sys.path to include the path to the module (or set the PYTHONPATH environment variable).
Even then, you still may need to import turbogears and update the configuration explicitly, ie: to define the dburi. Cheers, Chris On May 24, 7:41 am, SamDonaldson <[EMAIL PROTECTED]> wrote: > Hello, I'm trying to start an independent batch job in turbogrears in > a separate directory but I got a module not found error. Do I need to > do some extra turbogear initialization or some extra imports? I'm > running the job as such: python job.py so I"m assuming it needs to > connect o turbogear or include some libraries somehow? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

