We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a743c37 commit 74a6e2eCopy full SHA for 74a6e2e
scc/constants.py
@@ -21,13 +21,13 @@
21
# THE SOFTWARE.
22
23
from enum import IntEnum
24
-from importlib.metadata import version, distribution
+from importlib.metadata import version, packages_distributions
25
26
"""
27
If SC-Controller is updated while daemon is running, DAEMON_VERSION send by
28
daemon will differ one one expected by UI and daemon will be forcefully restarted.
29
30
-DAEMON_VERSION = version(distribution(__package__).name)
+DAEMON_VERSION = version(packages_distributions()[__package__][0])
31
32
HPERIOD = 0.02
33
LPERIOD = 0.5
0 commit comments