views:

25

answers:

1

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?

+5  A: 

Try this:

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