Problems with the __main__ file
JnyJny opened this issue · 0 comments
JnyJny commented
syslog-to-csv/bundlefun/__main__.py
Lines 1 to 10 in a0556c3
You are missing an import to make this go:
from importlib.metadata import distribution
if __name__ == "__main__":
success = True
dist = distribution("bundlefun")
path = dist.locate_file(...)
...
return 0 if success else 1
The final line in your code exit(main())
is going to fail since you haven't written a main
function to be called.