diff options
Diffstat (limited to 'app/cron/sync_photo_sets.py')
-rw-r--r-- | app/cron/sync_photo_sets.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/cron/sync_photo_sets.py b/app/cron/sync_photo_sets.py new file mode 100644 index 0000000..8c18a9a --- /dev/null +++ b/app/cron/sync_photo_sets.py @@ -0,0 +1,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_sets()
\ No newline at end of file |