python312Packages.slack-sdk: 3.33.3 -> 3.33.4 (#358119)
[NixPkgs.git] / pkgs / tools / networking / dnsviz / fix-path.patch
blob7906058cd98ec58aaba21d72ce9a36bcd7d48bca
1 diff --git a/dnsviz/config.py.in b/dnsviz/config.py.in
2 index 373fde2..007f0f1 100644
3 --- a/dnsviz/config.py.in
4 +++ b/dnsviz/config.py.in
5 @@ -26,12 +26,7 @@ from __future__ import unicode_literals
6 import os
7 import sys
9 -_prefix = '__DNSVIZ_INSTALL_PREFIX__'
10 -if (hasattr(sys, 'real_prefix') or hasattr(sys, 'base_prefix')) and \
11 - not _prefix:
12 - DNSVIZ_INSTALL_PREFIX = sys.prefix
13 -else:
14 - DNSVIZ_INSTALL_PREFIX = _prefix
15 +DNSVIZ_INSTALL_PREFIX = "@out@"
16 DNSVIZ_SHARE_PATH = os.path.join(DNSVIZ_INSTALL_PREFIX, 'share', 'dnsviz')
17 JQUERY_PATH = __JQUERY_PATH__
18 JQUERY_UI_PATH = __JQUERY_UI_PATH__