From bc436195febedf49f836b631a9c8e5fbd99ffefe Mon Sep 17 00:00:00 2001 From: mahmoud Date: Mon, 29 Dec 2025 05:17:51 -0800 Subject: [PATCH] Remove working directory assumption (#1171) --- lib/lichess_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lichess_bot.py b/lib/lichess_bot.py index ebc0de6f7..9ef2b129f 100644 --- a/lib/lichess_bot.py +++ b/lib/lichess_bot.py @@ -71,7 +71,7 @@ class VersioningType(TypedDict): logger = logging.getLogger(__name__) -with open("lib/versioning.yml") as version_file: +with open(os.path.join(os.path.dirname(__file__), "versioning.yml")) as version_file: versioning_info: VersioningType = yaml.safe_load(version_file) __version__ = versioning_info["lichess_bot_version"]