[gi-docgen: 1/2] Add sys.base_prefix to gir path if the python is compiled with GCC and on Windows This will fix http
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gi-docgen: 1/2] Add sys.base_prefix to gir path if the python is compiled with GCC and on Windows This will fix http
- Date: Wed, 31 Mar 2021 17:22:38 +0000 (UTC)
commit 1809eb979ddbb16ae58898d5fa9804e5e90995db
Author: Naveen M K <naveen@syrusdark.website>
Date: Sun Mar 28 23:17:21 2021 +0530
Add sys.base_prefix to gir path
if the python is compiled with GCC and on Windows
This will fix https://gitlab.gnome.org/ebassi/gi-docgen/-/issues/67
by adding the directory where it will be installed
usually to search path
gidocgen/utils.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gidocgen/utils.py b/gidocgen/utils.py
index b0e3183..655ea7a 100644
--- a/gidocgen/utils.py
+++ b/gidocgen/utils.py
@@ -818,6 +818,9 @@ def default_search_paths():
paths = []
paths.append(os.getcwd())
+ # Add sys.base_prefix when using MSYS2
+ if sys.platform == 'win32' and 'GCC' in sys.version:
+ paths.append(os.path.join(sys.base_prefix, 'share', 'gir-1.0'))
if xdg_data_home is not None:
paths.append(os.path.join(xdg_data_home, "gir-1.0"))
if xdg_data_dirs is not None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]