Fix running run-mypy from any working directory.

This commit is contained in:
Tim Abbott 2016-07-12 10:27:13 -07:00
parent 497142d7b1
commit 5d990c28d0
1 changed files with 3 additions and 1 deletions

View File

@ -3,13 +3,15 @@
from __future__ import print_function from __future__ import print_function
import os import os
from os.path import dirname, abspath
import sys import sys
import lister import lister
import argparse import argparse
import subprocess import subprocess
import six import six
TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
os.chdir(os.path.dirname(TOOLS_DIR))
exclude_common = """ exclude_common = """
api/integrations/asana/zulip_asana_config.py api/integrations/asana/zulip_asana_config.py
api/integrations/basecamp/zulip_basecamp_config.py api/integrations/basecamp/zulip_basecamp_config.py