Skip to content

Commit e32a20a

Browse files
authored
Remove working directory assumption (#1171) (#1173)
1 parent 9fbb3e8 commit e32a20a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/lichess_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class VersioningType(TypedDict):
7171

7272
logger = logging.getLogger(__name__)
7373

74-
with open("lib/versioning.yml") as version_file:
74+
with open(os.path.join(os.path.dirname(__file__), "versioning.yml")) as version_file:
7575
versioning_info: VersioningType = yaml.safe_load(version_file)
7676

7777
__version__ = versioning_info["lichess_bot_version"]

0 commit comments

Comments
 (0)