mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixed runcron to activate properly
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user