Skip to content

Commit f45947c

Browse files
committed
Removed exec of activate_this.py from 2 more scripts that are in activbe use.
- Legacy-Id: 17270
1 parent ac38dba commit f45947c

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

ietf/bin/generate-draft-aliases

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
# Author: Markus Stenberg <markus.stenberg@iki.fi>
88
#
99
"""
10+
This script requires that the proper virtual python environment has been
11+
invoked before start.
1012
1113
This code dumps Django model InternetDraft's contents as postfix email
12-
aliases
14+
aliases.
1315
1416
<no suffix> (same as -authors)
1517
.authors (list of authors)
@@ -33,10 +35,6 @@ basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
3335
sys.path = [ basedir ] + sys.path
3436
os.environ["DJANGO_SETTINGS_MODULE"] = "ietf.settings"
3537

36-
virtualenv_activation = os.path.join(basedir, "env", "bin", "activate_this.py")
37-
if os.path.exists(virtualenv_activation):
38-
execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
39-
4038
import django
4139
django.setup()
4240

ietf/bin/generate-wg-aliases

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# Author: Markus Stenberg <markus.stenberg@iki.fi>
88
#
99
"""
10+
This script requires that the proper virtual python environment has been
11+
invoked before start.
12+
1013
1114
This code dumps Django model IETFWG's contents as two sets of postfix
1215
mail lists: -ads, and -chairs
@@ -21,10 +24,6 @@ basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
2124
sys.path = [ basedir ] + sys.path
2225
os.environ["DJANGO_SETTINGS_MODULE"] = "ietf.settings"
2326

24-
virtualenv_activation = os.path.join(basedir, "env", "bin", "activate_this.py")
25-
if os.path.exists(virtualenv_activation):
26-
execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
27-
2827
import django
2928
django.setup()
3029

0 commit comments

Comments
 (0)