diff options
Diffstat (limited to 'cron/sync_links.py')
-rw-r--r-- | cron/sync_links.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cron/sync_links.py b/cron/sync_links.py index ba1ee8f..d622bbb 100644 --- a/cron/sync_links.py +++ b/cron/sync_links.py @@ -1,10 +1,13 @@ import sys, os +from os.path import dirname, abspath -sys.path.append('/home/luxagraf/webapps/django124/luxagraf') -sys.path.append('/home/luxagraf/webapps/django124/luxagraf/luxagraf') -sys.path.append('/home/luxagraf/webapps/django124/luxagraf/luxagraf/apps') -sys.path.append('/home/luxagraf/webapps/django124/luxagraf/luxagraf/lib') -sys.path.append('/home/luxagraf/webapps/django124/luxagraf/luxagraf/lib/utils') +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/django/lib/python2.6/') os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' |