use path.open()
This commit is contained in:
parent
10f26c12b4
commit
ca94ad1b25
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user