Skip to content

Commit b7263b6

Browse files
committed
Theoretical support for other Key Maps
1 parent 6e00a4c commit b7263b6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

piduck.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/bin/python3
22
import sys
3+
from importlib import import_module
34
from time import sleep
45

5-
from pd_key_maps import keymap_US
6+
key_layout = "us"
7+
try:
8+
import_module("pd_key_maps.keymap_" + key_layout)
9+
except ModuleNotFoundError:
10+
exit(3)
611

712
default_delay = 10
813
string_delay = 10

0 commit comments

Comments
 (0)