Python - importing a module from same directory
Question: > **Possible Duplicate:**  
>  [Using the Python NLTK (2.0b5) on the Google App
> Engine](http://stackoverflow.com/questions/1286301/using-the-python-
> nltk-2-0b5-on-the-google-app-engine)

I was adding my script to the Google App Engine and I needed to get some
modules to work. So I found the plain old file (in my case "NLTK" module) and
I added it to the same directory as my Google App Engine project. Currently
all my errors are coming from the importing of nltk, and when I try it
completely ignoring the google app enging by testing it in another file I
still get an import error.

So how can I import the NLTK module when it is in a folder in the same
directory as my python file without getting an error.

**Edit:** So I got the import line to work in IDLE...

    
    
    from nltk.corpus import wordnet
    

But I still get a server error when trying to use the program with Google app
engine


Answer: This question is too vague, you need to include more details.

It sounds like you're trying to include nltk in your GAE project and you've
copied one file into your GAE project folder.

You'll need to include the entire nltk folder in your GAE project. If there
are any other dependencies that nltk requires, you'll need to include those in
your GAE project too.

