diff options
author | John Kirkham <jakirkham@gmail.com> | 2015-12-02 13:30:17 -0500 |
---|---|---|
committer | John Kirkham <jakirkham@gmail.com> | 2015-12-02 13:30:17 -0500 |
commit | 1fc333e90d0328f878c8a58084eb2cba536d0b4b (patch) | |
tree | 9a13c1b6e06e8863edc36daf32666bf30ba04ba4 | |
parent | b2e4b5796db6c165460a6b37e7360bffe84d734e (diff) | |
download | pylint-1fc333e90d0328f878c8a58084eb2cba536d0b4b.tar.gz |
pylint/config.py: Add another check of the current working directory for `.pylintrc`.issue_538_pt2
-rw-r--r-- | pylint/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pylint/config.py b/pylint/config.py index 490f932..ba4e865 100644 --- a/pylint/config.py +++ b/pylint/config.py @@ -97,6 +97,8 @@ def find_pylintrc(): curdir = os.path.abspath(os.path.join(curdir, '..')) if os.path.isfile(os.path.join(curdir, 'pylintrc')): return os.path.join(curdir, 'pylintrc') + if os.path.isfile(os.path.join(curdir, '.pylintrc')): + return os.path.join(curdir, '.pylintrc') if 'PYLINTRC' in os.environ and os.path.exists(os.environ['PYLINTRC']): pylintrc = os.environ['PYLINTRC'] else: |