summaryrefslogtreecommitdiff
path: root/cron/sync_photo_sets.py
blob: 9d3f7541f04ec76d3e7345eca804e6f098047834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from os.path import dirname, abspath

PROJECT_ROOT = abspath(dirname(dirname(__file__)))


sys.path.append(PROJECT_ROOT)
sys.path.append(PROJECT_ROOT+'/apps')
sys.path.append(PROJECT_ROOT+'/lib')
sys.path.append(PROJECT_ROOT+'/lib/utils')
sys.path.append('/home/luxagraf/webapps/django/lib/python2.6/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

from photos import retriever
retriever.sync_sets()