diff --git a/setup.py b/setup.py index ad95ec1..c6892cc 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,9 @@ import analytical as package def read_file(fname): - return (Path(__file__).resolve().parent / fname).open().read() + """Read content of a file in project folder.""" + with (Path(__file__).resolve().parent / fname).open() as file: + return file.read() setup(