At the beginning of the script.
import sys
sys.path.append("/home/zubinweb/tg/install/")
import os
from os.path import *
import cherrypy
import pkg_resources
import turbogears
pkg_resources.require("TurboGears")
...
On Jul 28, 11:51 pm, Christopher Arndt <[EMAIL PROTECTED]> wrote:
> zubinix schrieb:
>
> > So why do I get the above error when I put this directory in my
> > sys.path?
>
> > import sys
> > sys.path.append("/home/zubinweb/tg/install")
> > import os
> > from os.path import *
> > import cherrypy
> > ...
>
> Where did you insert that code?
>
> BTW: using 'sys.path.insert(0, "/home/zubinweb/tg/install")' is usually
> preferable.
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---