From 16a57ac2f5ca6ace566f2f50de732fa2c783eded Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 17 Dec 2025 00:55:46 +0100 Subject: [PATCH] Make `build.py` run correctly regardless of CWD --- build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.py b/build.py index ed78d9d..44d5a94 100755 --- a/build.py +++ b/build.py @@ -10,6 +10,10 @@ from typing_extensions import Final def main() -> None: + # Change to the directory where the script is located, + # so that the script can be run from any location. + os.chdir(os.path.dirname(os.path.realpath(__file__))) + load_dotenv() transport: Final = AIOHTTPTransport(