fixed module Path for Absolute Path now

This commit is contained in:
Roy 2024-01-25 19:18:58 -08:00 committed by GitHub
parent 8e5934e1ef
commit ab5e365434
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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