You need to put your files into de python path in order to import them or do that:
from os.path import dirname, abspath path.append(abspath(dirname(__file__))) It put the folder that contains you file in the python path Cheers On Dec 25, 12:50 pm, Миклухо <[email protected]> wrote: > Hi, all. I have a simple application : > def my_wsgi_application (environ, start_response): > status = '200 OK' > output = 'This is my application' > response_headers = [('Content-type', 'text/plain')] > start_response(status, response_headers) > return [output] > application = my_wsgi_application > > which executes ok. I want to import files written by me, but it cannot > find it in path. Can anyone explain what should I do to import not(!) > system files. Searched all the web, no answer is available. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
