On Jul 21, 4:45 pm, Valder Gallo <valderga...@gmail.com> wrote: > Alexander, > > Try use this > > #test.py > import os, sys > sys.path.append('../')
This is relative to whatever the current working directory is whenever the script is called. Very bad idea, will obviously break one day or another. The canonical way to know the full path to the script's is "os.path.abspath(__file__)". Then you just have to use os.path.dirname to get the script's dir, etc... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.