Backported patches from production

- Legacy-Id: 17370
This commit is contained in:
Henrik Levkowetz 2020-02-28 20:46:20 +00:00
parent 2133cb010c
commit a2318d9f2c
4 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python
import io
import os
import sys

View file

@ -28,7 +28,7 @@ TODO:
"""
# boilerplate (from various other ietf/bin scripts)
import os, sys, re
import io, os, sys, re
filename = os.path.abspath(__file__)
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))

View file

@ -17,7 +17,7 @@ mail lists: -ads, and -chairs
"""
# boilerplate (from various other ietf/bin scripts)
import os, sys
import io, os, sys
filename = os.path.abspath(__file__)
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))

View file

@ -77,7 +77,7 @@ def notify(request, org, notification):
if request.method == "POST":
def runscript(name):
python = os.path.join(settings.BASE_DIR, "env", "bin", "python")
python = os.path.join(os.path.dirname(settings.BASE_DIR), "env", "bin", "python")
cmd = [python, os.path.join(SYNC_BIN_PATH, name)]
cmdstring = " ".join(cmd)
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)