[munin/link_plugins.py] on linke plus proprement
darcs-hash:20090421213629-bd074-74bc0807bb30a4cbde5ca46d6368f7f1b3fb19ef.gz
This commit is contained in:
parent
f0c913ab8e
commit
10147a431a
1 changed files with 8 additions and 3 deletions
|
@ -126,7 +126,12 @@ def link_plugins(plugins, directory):
|
||||||
"""Lie les plugins dans le répertoire directory"""
|
"""Lie les plugins dans le répertoire directory"""
|
||||||
|
|
||||||
for name, path in plugins.iteritems():
|
for name, path in plugins.iteritems():
|
||||||
|
try:
|
||||||
os.symlink(path, os.path.join(directory, name))
|
os.symlink(path, os.path.join(directory, name))
|
||||||
|
if sys.argv(1) == '-v':
|
||||||
|
print "%s installé avec succès!" % name
|
||||||
|
except OSError:
|
||||||
|
print "Echec à l'installation de %s (déjà installé?)" % name
|
||||||
|
|
||||||
# Hack propre
|
# Hack propre
|
||||||
def add_plugin(plugin):
|
def add_plugin(plugin):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue