summaryrefslogtreecommitdiff
path: root/app/cron/sync_photos.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/cron/sync_photos.py')
-rw-r--r--app/cron/sync_photos.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/cron/sync_photos.py b/app/cron/sync_photos.py
new file mode 100644
index 0000000..3dc7552
--- /dev/null
+++ b/app/cron/sync_photos.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_flickr_photos() \ No newline at end of file