Removed exec of activate_this.py from 2 more scripts that are in activbe use.
- Legacy-Id: 17270
This commit is contained in:
parent
ac38dba94b
commit
f45947c079
|
@ -7,9 +7,11 @@
|
|||
# Author: Markus Stenberg <markus.stenberg@iki.fi>
|
||||
#
|
||||
"""
|
||||
This script requires that the proper virtual python environment has been
|
||||
invoked before start.
|
||||
|
||||
This code dumps Django model InternetDraft's contents as postfix email
|
||||
aliases
|
||||
aliases.
|
||||
|
||||
<no suffix> (same as -authors)
|
||||
.authors (list of authors)
|
||||
|
@ -33,10 +35,6 @@ basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
|
|||
sys.path = [ basedir ] + sys.path
|
||||
os.environ["DJANGO_SETTINGS_MODULE"] = "ietf.settings"
|
||||
|
||||
virtualenv_activation = os.path.join(basedir, "env", "bin", "activate_this.py")
|
||||
if os.path.exists(virtualenv_activation):
|
||||
execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
|
||||
|
||||
import django
|
||||
django.setup()
|
||||
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
# Author: Markus Stenberg <markus.stenberg@iki.fi>
|
||||
#
|
||||
"""
|
||||
This script requires that the proper virtual python environment has been
|
||||
invoked before start.
|
||||
|
||||
|
||||
This code dumps Django model IETFWG's contents as two sets of postfix
|
||||
mail lists: -ads, and -chairs
|
||||
|
@ -21,10 +24,6 @@ basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
|
|||
sys.path = [ basedir ] + sys.path
|
||||
os.environ["DJANGO_SETTINGS_MODULE"] = "ietf.settings"
|
||||
|
||||
virtualenv_activation = os.path.join(basedir, "env", "bin", "activate_this.py")
|
||||
if os.path.exists(virtualenv_activation):
|
||||
execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
|
||||
|
||||
import django
|
||||
django.setup()
|
||||
|
||||
|
|
Loading…
Reference in a new issue