Skip to content

Commit 56e6cec

Browse files
committed
change conditional
1 parent f5bc2ee commit 56e6cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_seesaw/neopixel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def const(x):
2020

2121

2222
### hack to make sure this module is not placed in root CIRCUITPY/lib folder
23-
if __file__.split("/")[-2] != "adafruit_seesaw":
23+
if "." not in __name__:
2424
raise ImportError("seesaw neopixel being imported from wrong location")
2525

2626
__version__ = "0.0.0+auto.0"

0 commit comments

Comments
 (0)