diff options
author | skullY <skullydazed@gmail.com> | 2020-02-15 15:05:59 -0800 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2020-02-15 15:19:03 -0800 |
commit | 58101cbb73a16678280d8a0cea275d680b603e58 (patch) | |
tree | 2ea432efd5a8db930b36106a55e559a46f4e5bff /lib/python | |
parent | 512261b3437820294dc2915dcb837bb488d53253 (diff) |
fix list_keymaps for python 3.5
Diffstat (limited to 'lib/python')
-rw-r--r-- | lib/python/qmk/keymap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/keymap.py b/lib/python/qmk/keymap.py index 721a0deca0..15a91a276b 100644 --- a/lib/python/qmk/keymap.py +++ b/lib/python/qmk/keymap.py @@ -121,7 +121,7 @@ def list_keymaps(keyboard_name): while kb_path != keyboards_dir: keymaps_dir = kb_path / "keymaps" if keymaps_dir.exists(): - names = names.union([keymap for keymap in os.listdir(keymaps_dir) if (keymaps_dir / keymap / "keymap.c").is_file()]) + names = names.union([keymap for keymap in os.listdir(str(keymaps_dir)) if (keymaps_dir / keymap / "keymap.c").is_file()]) kb_path = kb_path.parent # if community layouts are supported, get them @@ -129,6 +129,6 @@ def list_keymaps(keyboard_name): for layout in rules_mk["LAYOUTS"].split(): cl_path = Path.cwd() / "layouts" / "community" / layout if cl_path.exists(): - names = names.union([keymap for keymap in os.listdir(cl_path) if (cl_path / keymap / "keymap.c").is_file()]) + names = names.union([keymap for keymap in os.listdir(str(cl_path)) if (cl_path / keymap / "keymap.c").is_file()]) return sorted(names) |