use path.open()

This commit is contained in:
Jan Petykiewicz 2024-07-29 00:23:08 -07:00
parent 10f26c12b4
commit ca94ad1b25

View File

@ -11,7 +11,8 @@ __author__ = 'Jan Petykiewicz'
try: try:
with open(pathlib.Path(__file__).parent / 'README.md', 'r') as f: readme_path = pathlib.Path(__file__).parent / 'README.md'
with readme_path.open('r') as f:
__doc__ = f.read() __doc__ = f.read()
except Exception: except Exception:
pass pass