mirror of https://github.com/zulip/zulip.git
Move zulip_tools library to root of repository.
(imported from commit 2fada9d2acbcf81f8e2b3de8caadbf335141dfaa)
This commit is contained in:
parent
38c5629505
commit
fffd4f3c59
|
@ -7,7 +7,7 @@ from collections import defaultdict
|
|||
|
||||
from os import path, environ
|
||||
|
||||
sys.path.append(path.join(path.dirname(__file__), '../tools'))
|
||||
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||
from zulip_tools import check_output
|
||||
|
||||
states = {
|
||||
|
|
|
@ -6,7 +6,7 @@ import time
|
|||
|
||||
from os import path, environ
|
||||
|
||||
sys.path.append(path.join(path.dirname(__file__), '../tools'))
|
||||
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||
from zulip_tools import check_output
|
||||
|
||||
WARN_THRESHOLD = 50
|
||||
|
|
|
@ -5,7 +5,7 @@ import logging
|
|||
import datetime
|
||||
import shutil
|
||||
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
from zulip_tools import DEPLOYMENTS_DIR, TIMESTAMP_FORMAT
|
||||
|
||||
logging.basicConfig(format="%(asctime)s purge-deployments: %(message)s",
|
||||
|
|
|
@ -6,7 +6,7 @@ import subprocess
|
|||
import logging
|
||||
import time
|
||||
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
from zulip_tools import ENDC, OKGREEN, DEPLOYMENTS_DIR
|
||||
|
||||
logging.basicConfig(format="%(asctime)s restart-server: %(message)s",
|
||||
|
|
|
@ -7,7 +7,7 @@ import datetime
|
|||
import shutil
|
||||
import time
|
||||
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
from zulip_tools import DEPLOYMENTS_DIR, LOCK_DIR, TIMESTAMP_FORMAT, FAIL, WARNING, ENDC
|
||||
|
||||
logging.basicConfig(format="%(asctime)s update-deployment: %(message)s",
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
from zulip_tools import check_output
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
import glob
|
||||
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
from zulip_tools import check_output
|
||||
|
||||
class Record:
|
||||
pass
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ import subprocess
|
|||
from os import path
|
||||
from collections import defaultdict
|
||||
|
||||
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||
from zulip_tools import check_output
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
|
|
|
@ -28,8 +28,10 @@
|
|||
#
|
||||
# see contrib/hooks/ for a sample
|
||||
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
from zulip_tools import check_output, ENDC, FAIL
|
||||
|
||||
def update_deployment(server, refname):
|
||||
|
|
Loading…
Reference in New Issue