|
0 |
#
|
|
1 |
# This file is a part of DNSViz, a tool suite for DNS/DNSSEC monitoring,
|
|
2 |
# analysis, and visualization.
|
|
3 |
# Created by Casey Deccio (casey@deccio.net)
|
|
4 |
#
|
|
5 |
# Copyright 2014-2016 Verisign, Inc.
|
|
6 |
#
|
|
7 |
# Copyright 2016-2021 Casey Deccio
|
|
8 |
#
|
|
9 |
# DNSViz is free software; you can redistribute it and/or modify
|
|
10 |
# it under the terms of the GNU General Public License as published by
|
|
11 |
# the Free Software Foundation; either version 2 of the License, or
|
|
12 |
# (at your option) any later version.
|
|
13 |
#
|
|
14 |
# DNSViz is distributed in the hope that it will be useful,
|
|
15 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 |
# GNU General Public License for more details.
|
|
18 |
#
|
|
19 |
# You should have received a copy of the GNU General Public License along
|
|
20 |
# with DNSViz. If not, see <http://www.gnu.org/licenses/>.
|
|
21 |
#
|
|
22 |
|
|
23 |
from __future__ import unicode_literals
|
|
24 |
|
|
25 |
import os
|
|
26 |
import sys
|
|
27 |
|
|
28 |
_prefix = ''
|
|
29 |
if (hasattr(sys, 'real_prefix') or hasattr(sys, 'base_prefix')) and \
|
|
30 |
not _prefix:
|
|
31 |
DNSVIZ_INSTALL_PREFIX = sys.prefix
|
|
32 |
else:
|
|
33 |
DNSVIZ_INSTALL_PREFIX = _prefix
|
|
34 |
DNSVIZ_SHARE_PATH = os.path.join(DNSVIZ_INSTALL_PREFIX, 'share', 'dnsviz')
|
|
35 |
JQUERY_PATH = 'http://code.jquery.com/jquery-1.11.3.min.js'
|
|
36 |
JQUERY_UI_PATH = 'http://code.jquery.com/ui/1.11.4/jquery-ui.min.js'
|
|
37 |
JQUERY_UI_CSS_PATH = 'http://code.jquery.com/ui/1.11.4/themes/redmond/jquery-ui.css'
|
|
38 |
RAPHAEL_PATH = 'http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.4/raphael-min.js'
|
|
39 |
RESOLV_CONF = '/etc/resolv.conf'
|