mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Fixed runcron to activate properly
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
"""Executes a Django cronjob"""
|
||||
|
||||
import os
|
||||
|
||||
# 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))
|
||||
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user