Commit 8bce5a16618b45d519d322da77e93b663e0c8c55
- Diff rendering mode:
- inline
- side by side
setup.py
(1 / 1)
  | |||
74 | 74 | def process_template(self, template_path, service_path): | |
75 | 75 | """Copy template_path to service_path, replacing format specifiers. | |
76 | 76 | """ | |
77 | variables = {'install_dir': self.install_dir, 'root': self.root} | ||
77 | variables = {'install_dir': self.install_dir[len(self.root):]} | ||
78 | 78 | with file(service_path, 'w') as service_file: | |
79 | 79 | for line in file(template_path): | |
80 | 80 | service_file.write(line % variables) |