miki725 / xunitmerge

Utility for merging multiple XUnit xml reports into a single xml report.
Other
15 stars 13 forks source link

No module named xunitmerge.__main__ #7

Open joaoe opened 5 years ago

joaoe commented 5 years ago

Hi. I just tried to execute xunitmerge as

$ python -munitmerge ...

but python complains

No module named xunitmerge.__main__; 'xunitmerge' is a package and cannot be directly executed

Suggestion: add a __main__.py with all the contents from bin/xunitmerge. Wrap them with a main function. Then update setup.py with

console_scripts: ["xunitmerge = xunitmerge.__main__:main"]

and you can remove bin/xunitmerge.

And this way setuptools will generate a xunitmerge.exe on Windows.

Thank you.