Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tools: Extract ROOT_DIR.

Zixuan James Liea3478e37744
diff --git a/tools/run-mypy b/tools/run-mypy
index ed926fc692b..d96a1a10237 100755
--- a/tools/run-mypy
+++ b/tools/run-mypy
@@ -8,9 +8,10 @@ from typing import List
from zulint import lister
TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
-os.chdir(os.path.dirname(TOOLS_DIR))
+ROOT_DIR = os.path.dirname(TOOLS_DIR)
+os.chdir(ROOT_DIR)
-sys.path.append(os.path.dirname(TOOLS_DIR))
+sys.path.append(ROOT_DIR)
from tools.lib.test_script import add_provision_check_override_param, assert_provisioning_status_ok
exclude = """