diff options
author | Casey Deccio <casey@deccio.net> | 2015-09-09 22:31:24 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2015-09-09 22:31:24 +0300 |
commit | a66e7eabc84c09053ad76237098bf8c5261e51d6 (patch) | |
tree | 1e598d6ad6acd792b1fb0fc3b9fcbb170b2210ad /setup.py | |
parent | 1ba71a8ac7e83de1efd56a6609f79b2f4a7dfaca (diff) |
Rename var
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,9 +10,10 @@ from distutils.dist import Distribution from distutils.command.install import install from distutils.command.build import build +# get the install prefix _install = install(Distribution()) _install.finalize_options() -INSTALL_DATA = _install.install_data +install_prefix = _install.install_data def apply_install_prefix(filename): assert filename.endswith('.in'), 'Filename supplied for customization must end with \'.in\': %s' % (filename) @@ -25,7 +26,7 @@ def apply_install_prefix(filename): in_fh = open(filename, 'r') out_fh = open(filename_out, 'w') s = in_fh.read() - s = s.replace('__DNSVIZ_INSTALL_PREFIX__', INSTALL_DATA) + s = s.replace('__DNSVIZ_INSTALL_PREFIX__', install_prefix) out_fh.write(s) in_fh.close() out_fh.close() |