Skip to content

Commit cf1fec2

Browse files
committed
Also setup.py needs to run on Python 2 and 3
1 parent bd0dd86 commit cf1fec2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
"""Setup script for realpython-reader"""
22

3-
import pathlib
3+
import os.path
44
from setuptools import setup
55

66
# The directory containing this file
7-
HERE = pathlib.Path(__file__).parent
7+
HERE = os.path.abspath(os.path.dirname(__file__))
88

99
# The text of the README file
10-
README = (HERE / "README.md").read_text()
11-
10+
with open(os.path.join(HERE, "README.md")) as fid:
11+
README = fid.read()
1212

1313
# This call to setup() does all the work
1414
setup(

0 commit comments

Comments
 (0)