summaryrefslogtreecommitdiffstats
path: root/cron/multi_award_badges
diff options
context:
space:
mode:
Diffstat (limited to 'cron/multi_award_badges')
-rwxr-xr-xcron/multi_award_badges11
1 files changed, 3 insertions, 8 deletions
diff --git a/cron/multi_award_badges b/cron/multi_award_badges
index df58155a..b34abd09 100755
--- a/cron/multi_award_badges
+++ b/cron/multi_award_badges
@@ -1,10 +1,5 @@
#!/bin/sh
-
-WORKON_HOME=~/envs/osqa
-PROJECT_ROOT=~/webapps/osqa_server/projects/osqa/
-
-# activate virtual environment
-. $WORKON_HOME/bin/activate
-
-cd $PROJECT_ROOT
+PYTHONPATH=/path/to/dir_above_osqa_site
+export PYTHONPATH
+PROJECT_ROOT=$PYTHONPATH/osqa_site
python manage.py multi_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1