I am using Paver for the firs开发者_开发知识库t time and I can't import in my pavement.py a module I created in the same directory. The module was working when imported in a standalone script in the same directory. I guess paver is running from somewhere else, not the same directory.
Any suggestion?
After a bit of investigation I found a solution...
import sys
sys.path.append( os.path.abspath('.') )
import mymodule.myscript as myscript
精彩评论