summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 60ac281..2740521 100644
--- a/setup.py
+++ b/setup.py
@@ -6,11 +6,10 @@ from setuptools import setup
from pyparsing import __version__ as pyparsing_version
# The directory containing this file
-import pathlib
-HERE = pathlib.Path(__file__).parent
+README_name = __file__.replace("setup.py", "README.rst")
# The text of the README file
-with (HERE / "README.rst").open() as README:
+with open(README_name) as README:
pyparsing_main_doc = README.read()
modules = ["pyparsing",]