diff --git a/analyzer/setup.py b/analyzer/setup.py index f36663ccf..db46cec42 100644 --- a/analyzer/setup.py +++ b/analyzer/setup.py @@ -4,7 +4,7 @@ from pathlib import Path from setuptools import setup # Change directory since setuptools uses relative paths -here = Path(__file__).parent +here = Path(__file__).parent.resolve() chdir(here) setup( diff --git a/api/setup.py b/api/setup.py index b461027c5..af3b673c7 100644 --- a/api/setup.py +++ b/api/setup.py @@ -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", diff --git a/api_client/setup.py b/api_client/setup.py index 517411624..3cc75c57f 100644 --- a/api_client/setup.py +++ b/api_client/setup.py @@ -1,9 +1,11 @@ -import os +from os import chdir +from pathlib import Path from setuptools import 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-client", diff --git a/playout/setup.py b/playout/setup.py index 2c41aa6b6..bb155191c 100644 --- a/playout/setup.py +++ b/playout/setup.py @@ -4,7 +4,7 @@ from pathlib import Path from setuptools import setup # Change directory since setuptools uses relative paths -here = Path(__file__).parent +here = Path(__file__).parent.resolve() chdir(here) setup( diff --git a/shared/setup.py b/shared/setup.py index acbbd0f39..580201872 100644 --- a/shared/setup.py +++ b/shared/setup.py @@ -3,7 +3,8 @@ from pathlib import Path from setuptools import setup -here = Path(__file__).parent +# Change directory since setuptools uses relative paths +here = Path(__file__).parent.resolve() chdir(here) setup( diff --git a/worker/setup.py b/worker/setup.py index 3adfb5051..de15a390b 100644 --- a/worker/setup.py +++ b/worker/setup.py @@ -1,9 +1,11 @@ -import os +from os import chdir +from pathlib import Path from setuptools import 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-celery",