Skip to content

Commit a2318d9

Browse files
committed
Backported patches from production
- Legacy-Id: 17370
1 parent 2133cb0 commit a2318d9

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

ietf/bin/find-submission-confirmation-email-in-postfix-log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22

3+
import io
34
import os
45
import sys
56

ietf/bin/generate-draft-aliases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TODO:
2828
"""
2929

3030
# boilerplate (from various other ietf/bin scripts)
31-
import os, sys, re
31+
import io, os, sys, re
3232

3333
filename = os.path.abspath(__file__)
3434
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))

ietf/bin/generate-wg-aliases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mail lists: -ads, and -chairs
1717
"""
1818

1919
# boilerplate (from various other ietf/bin scripts)
20-
import os, sys
20+
import io, os, sys
2121

2222
filename = os.path.abspath(__file__)
2323
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))

ietf/sync/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def notify(request, org, notification):
7777

7878
if request.method == "POST":
7979
def runscript(name):
80-
python = os.path.join(settings.BASE_DIR, "env", "bin", "python")
80+
python = os.path.join(os.path.dirname(settings.BASE_DIR), "env", "bin", "python")
8181
cmd = [python, os.path.join(SYNC_BIN_PATH, name)]
8282
cmdstring = " ".join(cmd)
8383
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

0 commit comments

Comments
 (0)