chore: make setup.py file chdir consistent
This commit is contained in:
parent
1924919e18
commit
441028a1d2
6 changed files with 17 additions and 9 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue