On Tue, 29 Jan 2019, Bruno Santos <brunomanuelsantos@xxxxxxxxxxxxxxxxxx> wrote:
On 00:05:56 2019-01-29, Jani Nikula wrote:
Read README.rst based on __file__, not current directory.
Good point! Nothing to comment.
Cheers,
Bruno
---
setup.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index a70496f53b94..f26aa77a640e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,11 @@
# Copyright (c) 2018, Jani Nikula <jani@xxxxxxxxxx>
# Licensed under the terms of BSD 2-Clause, see LICENSE for details.
+import os
import setuptools
-with open('README.rst', 'r') as file:
+readme = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'README.rst')
+with open(readme, 'r') as file:
long_description = file.read()
setuptools.setup(