linux: add start script and fixes; diagnostic outputs
This commit is contained in:
@@ -201,8 +201,13 @@ def test_api_direct():
|
||||
try:
|
||||
import requests
|
||||
|
||||
# Charger la requête
|
||||
with open('request_r290.json', 'r') as f:
|
||||
# Charger la requête (fichier à côté de ce script)
|
||||
request_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'request_r290.json')
|
||||
if not os.path.exists(request_path):
|
||||
# Fallback: essayer dans le répertoire courant
|
||||
request_path = 'request_r290.json'
|
||||
|
||||
with open(request_path, 'r') as f:
|
||||
request_data = json.load(f)
|
||||
|
||||
# Appeler l'API
|
||||
|
||||
Reference in New Issue
Block a user