diff options
Diffstat (limited to 'app/cron')
-rw-r--r-- | app/cron/sync_photo_sets.py | 20 | ||||
-rw-r--r-- | app/cron/sync_photos.py | 4 |
2 files changed, 11 insertions, 13 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() diff --git a/app/cron/sync_photos.py b/app/cron/sync_photos.py index ff601e6..634a2fc 100644 --- a/app/cron/sync_photos.py +++ b/app/cron/sync_photos.py @@ -1,12 +1,12 @@ import sys, os from os.path import dirname, abspath PROJECT_ROOT = abspath(dirname(dirname(dirname(__file__))))+'/' +#PROJECT_ROOT = abspath(dirname(dirname(__file__))) sys.path.append(PROJECT_ROOT) sys.path.append(PROJECT_ROOT+'/app') -sys.path.append(PROJECT_ROOT+'/app/lib/utils') +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_flickr_photos() |