[DEBUG] fix recursive mode

This commit is contained in:
Edouard DUPIN 2017-08-21 21:38:02 +02:00
parent b3a3c82d75
commit aea79397ff
3 changed files with 8 additions and 10 deletions

View File

@ -85,8 +85,8 @@ def recursive_get(path):
for filename in filenames: for filename in filenames:
#debug.info(os.path.join(root,filename)) #debug.info(os.path.join(root,filename))
if len(filename) > 2 \ if len(filename) > 2 \
and ( ff_file[-3:].lower() == ".d" \ and ( filename[-3:].lower() == ".d" \
or ff_file[-3:].lower() == ".o"): or filename[-3:].lower() == ".o"):
pass pass
else: else:
out.append(os.path.join(root,filename)) out.append(os.path.join(root,filename))

View File

@ -44,7 +44,7 @@ def read_file_property(folder):
else: else:
continue continue
debug.debug("Load config file:" + os.path.join(folder,ff_file)) 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"): for elem in data.split("\n"):
if elem == "": if elem == "":
continue continue

View File

@ -17,7 +17,7 @@ def readme():
# https://pypi.python.org/pypi?%3Aaction=list_classifiers # https://pypi.python.org/pypi?%3Aaction=list_classifiers
setup(name='prude', setup(name='prude',
version='0.2.0', 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(), long_description=readme(),
url='http://github.com/HeeroYui/prude', url='http://github.com/HeeroYui/prude',
author='Edouard DUPIN', author='Edouard DUPIN',
@ -28,14 +28,12 @@ setup(name='prude',
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License', 'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python', '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'], scripts=['bin/prude'],
# Does not work on MacOs
#data_file=[
# ('/etc/bash_completion.d', ['bash-autocompletion/lutin']),
#],
include_package_data = True, include_package_data = True,
zip_safe=False) zip_safe=False)