From 0d1352eb5a1a2d8cbb49ce31c776017a70fcff1f Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Fri, 18 Oct 2019 18:47:08 +0200 Subject: [PATCH] Update function to get README.md content --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 11aac04..7c960cf 100644 --- a/setup.py +++ b/setup.py @@ -4,8 +4,11 @@ import os from setuptools import find_packages, setup -with open("README.md", "r", encoding="utf-8") as fh: - LONG = fh.read() + +# read the contents of your README file +this_directory = os.path.abspath(os.path.dirname(__file__)) +with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f: + LONG = f.read() conf = [] templates = []