Skip to content

Commit 74a6e2e

Browse files
committed
debug(ci): debug build
1 parent a743c37 commit 74a6e2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scc/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
# THE SOFTWARE.
2222

2323
from enum import IntEnum
24-
from importlib.metadata import version, distribution
24+
from importlib.metadata import version, packages_distributions
2525

2626
"""
2727
If SC-Controller is updated while daemon is running, DAEMON_VERSION send by
2828
daemon will differ one one expected by UI and daemon will be forcefully restarted.
2929
"""
30-
DAEMON_VERSION = version(distribution(__package__).name)
30+
DAEMON_VERSION = version(packages_distributions()[__package__][0])
3131

3232
HPERIOD = 0.02
3333
LPERIOD = 0.5

0 commit comments

Comments
 (0)