From 8175fe3e2a8eceb8fa443db0ad3b2702eebc2811 Mon Sep 17 00:00:00 2001 From: Eric Xanderson Date: Tue, 5 Mar 2024 07:21:57 -0600 Subject: [PATCH] Update setup.py (#26) Need to figure out the absolute path to the install file, then load README.md --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 53507c0..8d9a7ba 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ +import os import setuptools +setup_path = os.path.dirname(os.path.realpath(__file__)) + install_requires = [ 'compoundfiles', 'compressed_rtf', @@ -7,7 +10,7 @@ install_requires = [ 'html2text', ] -with open("README.md", "r") as fh: +with open(f"{setup_path}/README.md", "r") as fh: long_description = fh.read() setuptools.setup(