Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit b0ecb2d

Browse files
committed
resolved test fail
1 parent b6e0b99 commit b0ecb2d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/common/debugger_communication_client.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,23 @@
99
from . import constants as CONSTANTS
1010
from . import utils
1111
import threading
12-
12+
import os
13+
import python_constants as TOPLEVEL_CONSTANTS
1314

1415
from adafruit_circuitplayground.express import cpx
1516
from adafruit_circuitplayground.constants import CPX
1617

18+
# add ref for micropython and clue
19+
abs_path_to_parent_dir = os.path.dirname(
20+
os.path.join(os.path.abspath(__file__), "..", "..", "..")
21+
)
22+
23+
sys.path.insert(
24+
0, os.path.join(abs_path_to_parent_dir, TOPLEVEL_CONSTANTS.MICROPYTHON_LIBRARY_NAME)
25+
)
26+
27+
sys.path.insert(0, os.path.join(abs_path_to_parent_dir, TOPLEVEL_CONSTANTS.CLUE_DIR))
28+
1729
from microbit.__model.microbit_model import __mb as mb
1830
from microbit.__model.constants import MICROBIT
1931

0 commit comments

Comments
 (0)