From 2a5ee06b0e68537d8489300b652715430e58df9d Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Mon, 19 Sep 2011 14:04:52 +0200 Subject: [PATCH] no need to redefine again and again inside loop Signed-off-by: Steven Armstrong --- bin/cdist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cdist b/bin/cdist index adb8bd78..6726295a 100755 --- a/bin/cdist +++ b/bin/cdist @@ -354,8 +354,8 @@ class Cdist: def link_type_to_emulator(self): """Link type names to cdist-type-emulator""" + source = sys.argv[0] for type in self.list_types(): - source = sys.argv[0] destination = os.path.join(self.bin_dir, type) log.debug("Linking %s to %s", source, destination) os.symlink(source, destination)