Skip to content

Commit b4f1e16

Browse files
committed
Importing __version__ during runtime
1 parent e9eed06 commit b4f1e16

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tg_bot/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161

6262
else:
6363
from tg_bot.config import Development as Config
64+
from _version import __version__
6465
TOKEN = Config.API_KEY
6566
try:
6667
OWNER_ID = int(Config.OWNER_ID)
@@ -100,6 +101,7 @@
100101
BAN_STICKER = Config.BAN_STICKER
101102
ALLOW_EXCL = Config.ALLOW_EXCL
102103
DEFAULT_CHAT_ID = Config.DEFAULT_CHAT_ID
104+
VERSION = __version__
103105

104106

105107
SUDO_USERS.add(OWNER_ID)

0 commit comments

Comments
 (0)