use path.open()
This commit is contained in:
parent
10f26c12b4
commit
ca94ad1b25
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue