mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Use pathlib instead of os.path (we only support Python 3.6+)
This commit is contained in:
parent
023702fa75
commit
52aa88f08a
1 changed files with 6 additions and 2 deletions
8
setup.py
8
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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue