From 5d3d4c9e22a695e2bfc7c7f643fa3dda772264fb Mon Sep 17 00:00:00 2001 From: Peter Bittner Date: Fri, 11 Mar 2022 09:48:08 +0100 Subject: [PATCH] Use pathlib instead of os.path (we only support Python 3.6+) --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4695f43..ad95ec1 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,8 @@ -import os +""" +Packaging setup for django-analytical. +""" + +from pathlib import Path from setuptools import setup @@ -6,7 +10,7 @@ import analytical as package def read_file(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() + return (Path(__file__).resolve().parent / fname).open().read() setup(