Skip to content

Commit 18e5614

Browse files
committed
Undo overaggressive cleanup.
1 parent 65636b8 commit 18e5614

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/powersensor_local/events.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
import typing
77
import sys
88

9+
from pathlib import Path
10+
11+
PROJECT_ROOT = str(Path(__file__).parents[1])
12+
if PROJECT_ROOT not in sys.path:
13+
sys.path.append(PROJECT_ROOT)
14+
915
from powersensor_local.devices import PowersensorDevices
1016
from powersensor_local.abstract_event_handler import AbstractEventHandler
1117
from powersensor_local.xlatemsg import Event

0 commit comments

Comments
 (0)