about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ed/eduvpn-client/nix-python-prefix.patch
blob: 4d5fc53b0993adc3ea8805cd41a36f8d8d1bb0b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/eduvpn/utils.py b/eduvpn/utils.py
index db0bf0c..76fc52a 100644
--- a/eduvpn/utils.py
+++ b/eduvpn/utils.py
@@ -69,7 +69,7 @@ def get_prefix() -> str:
     """
     target = "share/eduvpn/builder/mainwindow.ui"
     local = path.dirname(path.dirname(path.abspath(__file__)))
-    options = [local, path.expanduser("~/.local"), "/usr/local", prefix]
+    options = ["@out@"]
     for option in options:
         logger.debug(f"looking for '{target}' in '{option}'")
         if path.isfile(path.join(option, target)):