1
votes

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?

1

1 Answers

10
votes

Try this:

sys.path.append(os.path.join(os.path.dirname(__file__), 'extra_dir'))