Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2020-10-07 23:03:05 +0300
committerCasey Deccio <casey@deccio.net>2020-10-07 23:03:05 +0300
commitb329fcf10217a7b612a74a1ee0ed68e928184810 (patch)
treebf420acde3f79233e494667b827db161881caabb /setup.py
parente2b568c3c7ed0f16ab486ad0f693dd7f7955c9d8 (diff)
Set resolv.conf path in config.py with setup.py
Set resolv.conf path in config.py with setup.py instead of hardcoding it everywhere.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index ba1016e..e875a88 100644
--- a/setup.py
+++ b/setup.py
@@ -24,6 +24,7 @@ JQUERY_UI_PATH = "'http://code.jquery.com/ui/1.11.4/jquery-ui.min.js'"
JQUERY_UI_CSS_PATH = "'http://code.jquery.com/ui/1.11.4/themes/redmond/jquery-ui.css'"
JQUERY_PATH = "'http://code.jquery.com/jquery-1.11.3.min.js'"
RAPHAEL_PATH = "'http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.4/raphael-min.js'"
+RESOLV_CONF = "'/etc/resolv.conf'"
def apply_substitutions(filename, install_prefix):
assert filename.endswith('.in'), 'Filename supplied for customization must end with \'.in\': %s' % (filename)
@@ -41,6 +42,7 @@ def apply_substitutions(filename, install_prefix):
s = s.replace('__JQUERY_UI_PATH__', JQUERY_UI_PATH)
s = s.replace('__JQUERY_UI_CSS_PATH__', JQUERY_UI_CSS_PATH)
s = s.replace('__RAPHAEL_PATH__', RAPHAEL_PATH)
+ s = s.replace('__RESOLV_CONF__', RESOLV_CONF)
with open(filename_out, 'w') as out_fh:
out_fh.write(s)