Backported patches from production
- Legacy-Id: 17370
This commit is contained in:
parent
2133cb010c
commit
a2318d9f2c
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import io
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
|
|
@ -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__), "../.."))
|
||||
|
|
|
@ -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__), "../.."))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue