Moved templates inside of the package to enable setuptools distribution via package_data.
This commit is contained in:
1 parent
aa2f810069
commit
77a6c71119
6 files changed
+5
-5
No files matched your search
@@ -54,8 +54,8 @@ def main():
|
||||
data['copyright'] = rtv.__copyright__
|
||||
# Escape dashes is all of the sections
|
||||
data = {k:v.replace('-', r'\-') for k,v in data.items()}
|
||||
print('Reading from %s/templates/rtv.1.template' % ROOT)
|
||||
with open(os.path.join(ROOT, 'templates/rtv.1.template')) as fp:
|
||||
print('Reading from %s/rtv/templates/rtv.1.template' % ROOT)
|
||||
with open(os.path.join(ROOT, 'rtv/templates/rtv.1.template')) as fp:
|
||||
template = fp.read()
|
||||
print('Populating template')
|
||||
out = template.format(**data)
|
||||
|
||||
Reference in new issue
Block a user