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?

Hotwater
  • 13
  • 3
  • Possible duplicate of [How do you modify sys.path in Google App Engine (Python)?](https://stackoverflow.com/questions/2354166/how-do-you-modify-sys-path-in-google-app-engine-python) – tuomastik Aug 02 '18 at 08:59

1 Answers1

10

Try this:

sys.path.append(os.path.join(os.path.dirname(__file__), 'extra_dir'))
Nick Johnson
  • 100,655
  • 16
  • 128
  • 198