Skip to content

Commit 987fd1d

Browse files
mindwgsnedders
authored andcommitted
Import things from os.path to make setup.py more readable
1 parent 417653a commit 987fd1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ast
2-
import os
32
import codecs
43

4+
from os.path import join, dirname
55
from setuptools import setup, find_packages
66

77

@@ -22,9 +22,9 @@
2222
'Topic :: Text Processing :: Markup :: HTML'
2323
]
2424

25-
current_dir = os.path.dirname(__file__)
26-
with codecs.open(os.path.join(current_dir, 'README.rst'), 'r', 'utf8') as readme_file:
27-
with codecs.open(os.path.join(current_dir, 'CHANGES.rst'), 'r', 'utf8') as changes_file:
25+
here = dirname(__file__)
26+
with codecs.open(join(here, 'README.rst'), 'r', 'utf8') as readme_file:
27+
with codecs.open(join(here, 'CHANGES.rst'), 'r', 'utf8') as changes_file:
2828
long_description = readme_file.read() + '\n' + changes_file.read()
2929

3030
version = None

0 commit comments

Comments
 (0)