diff --git a/prude/__init__.py b/prude/__init__.py index 61977b9..7d1994f 100755 --- a/prude/__init__.py +++ b/prude/__init__.py @@ -85,8 +85,8 @@ def recursive_get(path): for filename in filenames: #debug.info(os.path.join(root,filename)) if len(filename) > 2 \ - and ( ff_file[-3:].lower() == ".d" \ - or ff_file[-3:].lower() == ".o"): + and ( filename[-3:].lower() == ".d" \ + or filename[-3:].lower() == ".o"): pass else: out.append(os.path.join(root,filename)) diff --git a/prude/env.py b/prude/env.py index 23742a0..f14b121 100644 --- a/prude/env.py +++ b/prude/env.py @@ -44,7 +44,7 @@ def read_file_property(folder): else: continue debug.debug("Load config file:" + os.path.join(folder,ff_file)) - data = file_read_data(os.path.join(prude_root_path,ff_file)) + data = file_read_data(os.path.join(folder,ff_file)) for elem in data.split("\n"): if elem == "": continue diff --git a/setup.py b/setup.py index 9e26f49..cbe351c 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ def readme(): # https://pypi.python.org/pypi?%3Aaction=list_classifiers setup(name='prude', version='0.2.0', - description='Prude is a simple parser thacj check word error (CamelCase and snake_case)', + description='Prude is a simple parser that check word error (CamelCase variable, snake_case variable and Documentation)', long_description=readme(), url='http://github.com/HeeroYui/prude', author='Edouard DUPIN', @@ -28,14 +28,12 @@ setup(name='prude', 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', - 'Topic :: Software Development :: Compilers', + 'Topic :: Software Development :: Build Tools', + 'Topic :: Software Development :: Documentation', + 'Topic :: Software Development :: Testing' ], - keywords='documentation over doxygen', + keywords='language checker in code', scripts=['bin/prude'], - # Does not work on MacOs - #data_file=[ - # ('/etc/bash_completion.d', ['bash-autocompletion/lutin']), - #], include_package_data = True, zip_safe=False)