mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
fix local plugin parser issue where parser has .py in the name but it is not at the end
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
jc changelog
|
jc changelog
|
||||||
|
|
||||||
|
20210628 v1.15.6
|
||||||
|
- Fix issue to only load local plugin parsers that have filenames that end in .py
|
||||||
|
|
||||||
20210520 v1.15.5
|
20210520 v1.15.5
|
||||||
- Fix issue where help and about information would not display if a 3rd party parser library was missing. (e.g. xmltodict)
|
- Fix issue where help and about information would not display if a 3rd party parser library was missing. (e.g. xmltodict)
|
||||||
- Add more error message detail when encountering ParseError and LibraryNotFound exceptions
|
- Add more error message detail when encountering ParseError and LibraryNotFound exceptions
|
||||||
|
@ -86,4 +86,4 @@ Module Example:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name = 'jc'
|
name = 'jc'
|
||||||
__version__ = '1.15.5'
|
__version__ = '1.15.6'
|
||||||
|
@ -130,7 +130,7 @@ local_parsers_dir = os.path.join(data_dir, 'jcparsers')
|
|||||||
if os.path.isdir(local_parsers_dir):
|
if os.path.isdir(local_parsers_dir):
|
||||||
sys.path.append(data_dir)
|
sys.path.append(data_dir)
|
||||||
for name in os.listdir(local_parsers_dir):
|
for name in os.listdir(local_parsers_dir):
|
||||||
if re.match(r'\w+\.py', name) and os.path.isfile(os.path.join(local_parsers_dir, name)):
|
if re.match(r'\w+\.py$', name) and os.path.isfile(os.path.join(local_parsers_dir, name)):
|
||||||
plugin_name = name[0:-3]
|
plugin_name = name[0:-3]
|
||||||
local_parsers.append(plugin_name)
|
local_parsers.append(plugin_name)
|
||||||
if plugin_name not in parsers:
|
if plugin_name not in parsers:
|
||||||
|
BIN
jc/man/jc.1.gz
BIN
jc/man/jc.1.gz
Binary file not shown.
BIN
man/jc.1.gz
BIN
man/jc.1.gz
Binary file not shown.
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open('README.md', 'r') as f:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='jc',
|
name='jc',
|
||||||
version='1.15.5',
|
version='1.15.6',
|
||||||
author='Kelly Brazil',
|
author='Kelly Brazil',
|
||||||
author_email='kellyjonbrazil@gmail.com',
|
author_email='kellyjonbrazil@gmail.com',
|
||||||
description='Converts the output of popular command-line tools and file-types to JSON.',
|
description='Converts the output of popular command-line tools and file-types to JSON.',
|
||||||
|
Reference in New Issue
Block a user