nixos-config/packages/key-mapper/hack-data-dir.patch

13 lines
382 B
Diff

diff --git a/keymapper/data.py b/keymapper/data.py
index d909399..f7716ac 100644
--- a/keymapper/data.py
+++ b/keymapper/data.py
@@ -68,6 +68,7 @@ def get_data_path(filename=''):
'/usr/share/key-mapper',
'/usr/local/share/key-mapper',
os.path.join(site.USER_BASE, 'share/key-mapper'),
+ os.environ["KEYMAPPER_DATA"],
]
if data is None: