chore: make setup.py file chdir consistent

This commit is contained in:
jo 2022-01-22 18:09:40 +01:00 committed by Kyle Robbertze
parent 1924919e18
commit 441028a1d2
6 changed files with 17 additions and 9 deletions

View file

@ -1,9 +1,12 @@
import os
from os import chdir
from pathlib import Path
from setuptools import find_packages, setup
# Change directory since setuptools uses relative paths
os.chdir(os.path.dirname(os.path.realpath(__file__)))
here = Path(__file__).parent.resolve()
chdir(here)
setup(
name="libretime-api",