diff options
author | luxagraf <sng@luxagraf.net> | 2014-05-01 01:18:37 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2014-05-01 01:18:37 +0000 |
commit | 63662145af4487bc026e6cd906766a95817d46fb (patch) | |
tree | 8807cfb2559ea9d22043bc833492101fcb2aa9cb /app/cron/sync_photo_sets.py | |
parent | 79b3268e10706e1ea14d7ba1275a9744ce51cd3a (diff) |
fixed Flickr issues and photo template settings
Diffstat (limited to 'app/cron/sync_photo_sets.py')
-rw-r--r-- | app/cron/sync_photo_sets.py | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/app/cron/sync_photo_sets.py b/app/cron/sync_photo_sets.py index 8c18a9a..beac435 100644 --- a/app/cron/sync_photo_sets.py +++ b/app/cron/sync_photo_sets.py @@ -1,15 +1,13 @@ import sys, os from os.path import dirname, abspath - -PROJECT_ROOT = abspath(dirname(dirname(__file__))) - - +PROJECT_ROOT = abspath(dirname(dirname(dirname(__file__))))+'/' +#PROJECT_ROOT = abspath(dirname(dirname(__file__))) +print PROJECT_ROOT 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' - +sys.path.append(PROJECT_ROOT+'/app') +sys.path.append(PROJECT_ROOT+'/app/lib') +sys.path.append(PROJECT_ROOT+'/config') +sys.path.append('/home/luxagraf/apps/venv/bin/python2.7/') +os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.settings' from photos import retriever -retriever.sync_sets()
\ No newline at end of file +retriever.sync_sets() |