Skip to content

Commit 02d14c9

Browse files
committed
fix
1 parent a6580d5 commit 02d14c9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

setup.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@
1212
from os import path
1313

1414

15+
16+
HERE = path.abspath(path.dirname(__file__))
17+
18+
# Get the long description from the relevant file
19+
with open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
20+
long_description = f.read()
21+
22+
1523
def get_version():
1624
version = '0.1.0'
17-
with open('metsrw/__init__.py') as fi:
25+
with open(path.join(HERE, 'metsrw', '__init__.py')) as fi:
1826
for line in fi:
1927
if line.startswith('__version__'):
2028
parts = line.strip().split()
@@ -25,13 +33,6 @@ def get_version():
2533
return version
2634

2735

28-
here = path.abspath(path.dirname(__file__))
29-
30-
# Get the long description from the relevant file
31-
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
32-
long_description = f.read()
33-
34-
3536
setup(
3637
name='metsrw',
3738
version=get_version(),

0 commit comments

Comments
 (0)