Setting the path of modules called in your script without hardcoding:

import os, sys, web
#pth = 'c:/portfolio'
pth = os.path.dirname(os.path.abspath(__file__))
web.debug(pth)
sys.path.append(pth)
import viewer, manager

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to