summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2007-02-18 11:36:38 +0100
committerSylvain <syt@logilab.fr>2007-02-18 11:36:38 +0100
commita7ff2043e852738e84d73b3df29f1a7f726f7f8f (patch)
treed88075ce01727c68d4c5d7b34f666920c6d3e9c4 /config.py
parentdcbe9fef06d2b6fc7e7887de0c261b0a14c3a62f (diff)
downloadpylint-a7ff2043e852738e84d73b3df29f1a7f726f7f8f.tar.gz
lint fixes
Diffstat (limited to 'config.py')
-rw-r--r--config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.py b/config.py
index 3978173..dd34346 100644
--- a/config.py
+++ b/config.py
@@ -71,6 +71,8 @@ def save_results(results, base):
def find_pylintrc():
+ """search the pylint rc file and return its path if it find it, else None
+ """
# is there a pylint rc file in the current directory ?
if exists('pylintrc'):
return abspath('pylintrc')
@@ -83,7 +85,6 @@ def find_pylintrc():
if os.environ.has_key('PYLINTRC') and exists(os.environ['PYLINTRC']):
pylintrc = os.environ['PYLINTRC']
else:
- USER_HOME = expanduser('~')
if USER_HOME == '~' or USER_HOME == '/root':
pylintrc = ".pylintrc"
else: