Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mypy/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def parse_config_file(options: Options, set_strict_flags: Callable[[], None],
if not os.path.exists(config_file):
continue
try:
if 'MYPY_CONFIG_FILE_DIR' not in os.environ:
os.environ['MYPY_CONFIG_FILE_DIR'] = os.path.dirname(config_file)
else:
os.environ['MYPY_CONFIG_FILE_DIR'] += os.pathsep + os.path.dirname(config_file)
parser.read(config_file)
except configparser.Error as err:
print("%s: %s" % (config_file, err), file=stderr)
Expand Down