From cdc845d56832b8bbf6d87fa9a2fd5f597c029043 Mon Sep 17 00:00:00 2001 From: Fabrice CARUSO Date: Mon, 10 Nov 2025 17:08:36 +0100 Subject: [PATCH] [CheckWheelGunGames] Fix execution path so it can work on windows --- resources/checkWheelGunGamesResources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/checkWheelGunGamesResources.py b/resources/checkWheelGunGamesResources.py index 818c75e09..1c26995a1 100755 --- a/resources/checkWheelGunGamesResources.py +++ b/resources/checkWheelGunGamesResources.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 import xml.etree.ElementTree as ET - +import os def xml2systemsArrays(path): res = dict() @@ -33,7 +33,7 @@ def checkSystemGames(system, games): hasError = False -for file in ["resources/gamesdb.xml"]: +for file in [os.path.join(os.path.dirname(__file__), 'gamesdb.xml')]: systems = xml2systemsArrays(file) for system in systems: if checkSystemGames(system, systems[system]) == False: