import sys, os sys.path.append('/home/luxagraf/webapps/django1_2') sys.path.append('/home/luxagraf/webapps/django1_2/luxagraf') sys.path.append('/home/luxagraf/webapps/django1_2/luxagraf/apps') sys.path.append('/home/luxagraf/webapps/django1_2/luxagraf/lib') sys.path.append('/home/luxagraf/webapps/django/lib/python2.6/') os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from photos import retriever retriever.sync_sets()