From ab5e3654344c0d24454c183e4d34af7baeacdd47 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Thu, 25 Jan 2024 19:18:58 -0800 Subject: [PATCH] fixed module Path for Absolute Path now --- NSLGameScanner.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 30d2023..0ecaa31 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -31,12 +31,14 @@ ubisoft_connect_launcher = os.environ.get('ubisoft_connect_launcher', '') ea_app_launcher = os.environ.get('ea_app_launcher', '') # Define the parent folder -parent_folder = ".config/systemd/user/Modules" +parent_folder = f"{logged_in_home}/.config/systemd/user/Modules" # Now that the requests module has been downloaded, you can import it -sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), parent_folder)) +sys.path.insert(0, parent_folder) import requests from steamgrid import SteamGridDB +print(sys.path) + #Set Up nslgamescanner.service # Define the paths