Move zulip_tools library to root of repository.

(imported from commit 2fada9d2acbcf81f8e2b3de8caadbf335141dfaa)
This commit is contained in:
Tim Abbott 2013-10-25 17:46:02 -04:00
parent 38c5629505
commit fffd4f3c59
9 changed files with 13 additions and 6 deletions

View File

@ -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 = {

View File

@ -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

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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

View File

@ -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()

View File

@ -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):