From 89a57009f50ec3caac9f155ba121819c606be295 Mon Sep 17 00:00:00 2001 From: sezanzeb Date: Thu, 3 Dec 2020 18:32:28 +0100 Subject: [PATCH] possibly fixed the data path --- keymapper/data.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/keymapper/data.py b/keymapper/data.py index f846ff22..84d1173e 100644 --- a/keymapper/data.py +++ b/keymapper/data.py @@ -55,14 +55,13 @@ def get_data_path(filename=''): candidates = [ os.path.join(site.USER_BASE, 'share/key-mapper'), '/usr/local/share/key-mapper', - '/usr/share/key-mapper', - os.path.join(source_path, 'data') + '/usr/share/key-mapper' ] + print('source_path', source_path) if '/site-packages' not in source_path: - print('shitcrap', source_path) # probably installed with -e, running from the cloned git source - data_path = candidates[3] + data_path = os.path.join(source_path, 'data') else: # try any of the options for candidate in candidates: