diff options
author | Casey Deccio <casey@deccio.net> | 2020-10-07 23:03:05 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2020-10-07 23:03:05 +0300 |
commit | b329fcf10217a7b612a74a1ee0ed68e928184810 (patch) | |
tree | bf420acde3f79233e494667b827db161881caabb /setup.py | |
parent | e2b568c3c7ed0f16ab486ad0f693dd7f7955c9d8 (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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |