summaryrefslogtreecommitdiff
path: root/cron/sync_photos.py
blob: 3dc7552836c0aa26fffaca8743a39232c2d6d34e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys, os
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/django1_3/lib/python2.7/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

from photos import retriever
retriever.sync_flickr_photos()