From 8bce5a16618b45d519d322da77e93b663e0c8c55 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Wed, 06 Jul 2011 20:39:05 +0000 Subject: setup.py: fix --root support for D-Bus service files --- (limited to 'setup.py') diff --git a/setup.py b/setup.py index 0624562..153f084 100755 --- a/setup.py +++ b/setup.py @@ -74,7 +74,7 @@ class install_dbus(Command): # pylint: disable=C0103,R0904 def process_template(self, template_path, service_path): """Copy template_path to service_path, replacing format specifiers. """ - variables = {'install_dir': self.install_dir, 'root': self.root} + variables = {'install_dir': self.install_dir[len(self.root):]} with file(service_path, 'w') as service_file: for line in file(template_path): service_file.write(line % variables) -- cgit v0.9.1