diff options
Diffstat (limited to 'src/usr/bin/logout-manager-ncurses')
-rwxr-xr-x | src/usr/bin/logout-manager-ncurses | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/bin/logout-manager-ncurses b/src/usr/bin/logout-manager-ncurses index 7ff5e18..67b18d7 100755 --- a/src/usr/bin/logout-manager-ncurses +++ b/src/usr/bin/logout-manager-ncurses @@ -20,13 +20,14 @@ # accepts enabled attribute # add "zeroindex" bool -import curses, os, platform, sys +import curses, os, sys +from distro import linux_distribution from dotenv import load_dotenv # all this to load the libpath try: defaultdir="/etc/sysconfig" - thisplatform = platform.platform().lower() + thisplatform = linux_distribution()[0].lower() if 'debian' in thisplatform or 'devuan' in thisplatform: defaultdir="/etc/default" # load_dotenv keeps existing environment variables as higher precedent @@ -36,6 +37,7 @@ except: if 'LOGOUT_MANAGER_LIBPATH' in os.environ: for i in os.environ['LOGOUT_MANAGER_LIBPATH'].split(":"): sys.path.append(i) +sys.path.append("/usr/share/logout-manager") import lmlib class CursesMenu(object): |