From 60cb324a100850486b72bfa0c6d167d8b6e544be Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 25 Jul 2017 14:52:14 +0200 Subject: [PATCH] Update settingsManager.py --- src/fenrir/core/settingsManager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/fenrir/core/settingsManager.py b/src/fenrir/core/settingsManager.py index ac78db1a..5c6f5b0f 100644 --- a/src/fenrir/core/settingsManager.py +++ b/src/fenrir/core/settingsManager.py @@ -4,9 +4,11 @@ # Fenrir TTY screen reader # By Chrys, Storm Dragon, and contributers. -import os +import os, inspect +currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) +fenrirPath = os.path.dirname(currentdir) + from configparser import ConfigParser -from . import fenrirVersion from core import eventManager from core import inputManager from core import outputManager @@ -30,7 +32,7 @@ class settingsManager(): self.env = environment def shutdown(self): pass - def loadShortcuts(self, kbConfigPath=os.path.dirname(os.path.realpath(fenrirVersion.__file__)) + '/../../config/keyboard/desktop.conf'): + def loadShortcuts(self, kbConfigPath=fenrirPath + '/../../config/keyboard/desktop.conf'): kbConfig = open(kbConfigPath,"r") while(True): invalid = False