From 6c5b5a91c2afcd554e4e67bb40764b6f9d8d1be9 Mon Sep 17 00:00:00 2001 From: slava Date: Tue, 19 May 2026 17:15:57 +0700 Subject: [PATCH] Fix for windows --- config.ini | 4 ++-- tests/mock_server/gen_transactions.ps1 | 17 +---------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/config.ini b/config.ini index 1074df0..cf18d72 100644 --- a/config.ini +++ b/config.ini @@ -3,7 +3,7 @@ list=ozon, black, dushanbe_city_bank [common] currencies=USD, ARS, RUB, TJS -version=0.0.9 +version=1.0.63 [db] dbPath=./database/app_data.db @@ -43,4 +43,4 @@ currency=TJS country=tajikistan name=Dushanbe City phone_code=992 -app_version=3.2.33 +app_version=3.2.34 diff --git a/tests/mock_server/gen_transactions.ps1 b/tests/mock_server/gen_transactions.ps1 index 635b19d..acffc1e 100644 --- a/tests/mock_server/gen_transactions.ps1 +++ b/tests/mock_server/gen_transactions.ps1 @@ -13,19 +13,4 @@ foreach ($_c in $_configCandidates) { if (-not $_configPath) { Write-Host "ERROR: config.ini not found" -ForegroundColor Red; exit 1 } $_configArg = @("--config", $_configPath) Write-Host "Config: $_configPath" -ForegroundColor Gray -$_pythonExe = $null -foreach ($_cmd in (Get-Command python, python3, py -ErrorAction SilentlyContinue)) { - if ($_cmd.Source -notlike "*WindowsApps*") { $_pythonExe = $_cmd.Source; break } -} -if (-not $_pythonExe) { - $_pythonExe = (Get-ChildItem "$env:LOCALAPPDATA\Programs\Python\*\python.exe", - "C:\Users\*\AppData\Local\Programs\Python\*\python.exe", - "C:\Program Files\Python*\python.exe", - "C:\Python*\python.exe" -ErrorAction SilentlyContinue | - Select-Object -First 1).FullName -} -if (-not $_pythonExe) { - Write-Host "ERROR: python not found. Install Python or add it to PATH." -ForegroundColor Red; exit 1 -} -Write-Host "Python: $_pythonExe" -ForegroundColor Gray -& $_pythonExe "$PSScriptRoot\gen_fetch_transactions.py" @_configArg @args \ No newline at end of file +& "C:\Users\User\AppData\Local\Programs\Python\Python312-arm64\python.exe" "$PSScriptRoot\gen_fetch_transactions.py" @_configArg @args \ No newline at end of file