From a315849a9ebe708578f209094d759ea862aab5d4 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 7 May 2016 19:00:48 -0700 Subject: [PATCH] Move bin/log-management-command to scripts/lib/. We're in the process of eliminating the bin/ subdirectory in favor of the scripts/ tree, and this one isn't user-facing. --- manage.py | 2 +- {bin => scripts/lib}/log-management-command | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {bin => scripts/lib}/log-management-command (87%) diff --git a/manage.py b/manage.py index f14fbe4142..81fdf7dcfc 100755 --- a/manage.py +++ b/manage.py @@ -14,7 +14,7 @@ if __name__ == "__main__": from django.conf import settings logger = logging.getLogger("zulip.management") - subprocess.check_call([os.path.join(os.path.dirname(__file__), "bin", "log-management-command"), + subprocess.check_call([os.path.join(os.path.dirname(__file__), "scripts", "lib", "log-management-command"), " ".join(sys.argv)]) if "--no-traceback" not in sys.argv and len(sys.argv) > 1: diff --git a/bin/log-management-command b/scripts/lib/log-management-command similarity index 87% rename from bin/log-management-command rename to scripts/lib/log-management-command index ecae13c3c8..574e603ccc 100755 --- a/bin/log-management-command +++ b/scripts/lib/log-management-command @@ -2,7 +2,7 @@ import sys import logging import os -sys.path.append(os.path.join(os.path.dirname(__file__), "..")) +sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zproject.settings") from django.conf import settings