Utilize Path class when finding Python executable

This is a code clean up and shouldn't affect the outcome.

PR #22760.
This commit is contained in:
Chocobo1
2025-05-25 15:00:19 +08:00
committed by GitHub
parent d56b353c52
commit 84cd8e1535
5 changed files with 52 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2018 Mike Tzou
* Copyright (C) 2018-2025 Mike Tzou (Chocobo1)
* Copyright (C) 2006 Christophe Dumez <chris@qbittorrent.org>
*
* This program is free software; you can redistribute it and/or
@@ -32,6 +32,7 @@
#include <QString>
#include "base/global.h"
#include "base/path.h"
#include "base/utils/version.h"
namespace Utils::ForeignApps
@@ -45,7 +46,7 @@ namespace Utils::ForeignApps
bool isValid() const;
bool isSupportedVersion() const;
QString executableName;
Path executablePath;
Version version;
inline static const Version MINIMUM_SUPPORTED_VERSION {3, 9, 0};