Skip to content

Commit 820a59d

Browse files
committed
Fix import handling for UP_PIN and DOWN_PIN; add fallback for ModuleNotFoundError
1 parent f5e8154 commit 820a59d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/progressive_automations_python/movement_control.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
from typing import Tuple
1010

1111
import RPi.GPIO as GPIO
12-
from progressive_automations_python.config import UP_PIN, DOWN_PIN
12+
try:
13+
from progressive_automations_python.config import UP_PIN, DOWN_PIN
14+
except ModuleNotFoundError:
15+
from config import UP_PIN, DOWN_PIN
1316

1417

1518
def setup_gpio() -> None:

0 commit comments

Comments
 (0)