Fixed runcron to activate properly

This commit is contained in:
2010-07-07 11:28:09 +01:00
parent 8e19656661
commit 2530fc39ad

View File

@@ -1,8 +1,11 @@
#!/usr/bin/env python #!/usr/bin/env python
"""Executes a Django cronjob""" """Executes a Django cronjob"""
import os
# Activate the virtualenv # Activate the virtualenv
activate_this = 'env/bin/activate_this.py' path = os.path.dirname(os.path.abspath( __file__ ))
activate_this = os.path.join(path, 'env/bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this)) execfile(activate_this, dict(__file__=activate_this))
import sys import sys