summaryrefslogtreecommitdiff
path: root/app/cron/sync_links.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/cron/sync_links.py')
-rw-r--r--app/cron/sync_links.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/cron/sync_links.py b/app/cron/sync_links.py
index 4bec6d2..cd1373d 100644
--- a/app/cron/sync_links.py
+++ b/app/cron/sync_links.py
@@ -1,13 +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/django/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 links import retriever
-retriever.sync_pinboard_links() \ No newline at end of file
+retriever.sync_pinboard_links()