Skip to content

Commit 5ea666c

Browse files
kattnitannewt
authored andcommitted
Added .frozen to sys path to prefer frozen modules
Express class will now prefer frozen modules over local versions. This will resolve memory allocation failures when including the entire library bundle on the CPX.
1 parent 11ca7a2 commit 5ea666c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_circuitplayground/express.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import sys
2+
sys.path.insert(0, ".frozen") # prefer frozen modules over local
3+
14
import adafruit_lis3dh
25
import adafruit_thermistor
36
import analogio

0 commit comments

Comments
 (0)