1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/tools/networking/dnsviz/fix-path.patch
Johannes Schleifenbaum 288f4a6173
dnsviz: init at 0.9.2
2021-03-07 19:01:04 +01:00

19 lines
614 B
Diff

diff --git a/dnsviz/config.py.in b/dnsviz/config.py.in
index 373fde2..007f0f1 100644
--- a/dnsviz/config.py.in
+++ b/dnsviz/config.py.in
@@ -26,12 +26,7 @@ from __future__ import unicode_literals
import os
import sys
-_prefix = '__DNSVIZ_INSTALL_PREFIX__'
-if (hasattr(sys, 'real_prefix') or hasattr(sys, 'base_prefix')) and \
- not _prefix:
- DNSVIZ_INSTALL_PREFIX = sys.prefix
-else:
- DNSVIZ_INSTALL_PREFIX = _prefix
+DNSVIZ_INSTALL_PREFIX = "@out@"
DNSVIZ_SHARE_PATH = os.path.join(DNSVIZ_INSTALL_PREFIX, 'share', 'dnsviz')
JQUERY_PATH = __JQUERY_PATH__
JQUERY_UI_PATH = __JQUERY_UI_PATH__