I have this
import sys
sys.path.append('extra_dir')
import extra_module
It work perfectly under Windows XP App Engine SDK (offline)
But when deploy online, it give me <type 'exceptions.ImportError'>
, what am I missing to deploy it online?
I have this
import sys
sys.path.append('extra_dir')
import extra_module
It work perfectly under Windows XP App Engine SDK (offline)
But when deploy online, it give me <type 'exceptions.ImportError'>
, what am I missing to deploy it online?
Try this:
sys.path.append(os.path.join(os.path.dirname(__file__), 'extra_dir'))