minor update

This commit is contained in:
Miroslav Stampar 2011-01-25 12:54:49 +00:00
parent 98e48bd682
commit c7f260a8bc

View File

@ -16,7 +16,7 @@ def check(module):
if module[-3:] == ".py": if module[-3:] == ".py":
print "CHECKING ", module print "CHECKING ", module
pout = os.popen('pylint %s'% module, 'r') pout = os.popen('pylint --rcfile=/dev/null %s'% module, 'r')
for line in pout: for line in pout:
if re.match("E....:.", line): if re.match("E....:.", line):
print line print line
@ -34,7 +34,7 @@ if __name__ == "__main__":
print "no directory specified, defaulting to current working directory" print "no directory specified, defaulting to current working directory"
BASE_DIRECTORY = os.getcwd() BASE_DIRECTORY = os.getcwd()
print "looking for *.py scripts in subdirectories of ", BASE_DIRECTORY print "looking for *.py scripts in subdirectories of ", BASE_DIRECTORY
for root, dirs, files in os.walk(BASE_DIRECTORY): for root, dirs, files in os.walk(BASE_DIRECTORY):
for name in files: for name in files:
filepath = os.path.join(root, name) filepath = os.path.join(root, name)