Read README.rst based on __file__, not current directory.
---
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(
--
2.20.1