no need to redefine again and again inside loop

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-09-19 14:04:52 +02:00
parent a56a6604be
commit 2a5ee06b0e

View file

@ -354,8 +354,8 @@ class Cdist:
def link_type_to_emulator(self): def link_type_to_emulator(self):
"""Link type names to cdist-type-emulator""" """Link type names to cdist-type-emulator"""
for type in self.list_types():
source = sys.argv[0] source = sys.argv[0]
for type in self.list_types():
destination = os.path.join(self.bin_dir, type) destination = os.path.join(self.bin_dir, type)
log.debug("Linking %s to %s", source, destination) log.debug("Linking %s to %s", source, destination)
os.symlink(source, destination) os.symlink(source, destination)