Pour splitter une chaîne en la liste de ses lettres, pensez à list()

This commit is contained in:
Pierre-Elliott Bécue 2015-04-05 11:23:47 +02:00
parent 82667e4706
commit ebcf2508c3

View file

@ -24,5 +24,5 @@ if has("nfs"):
# Pour ceux qui accedent beaucoup aux homes on monte tout le /home
mnt("nfs.adm.crans.org:/home-adh", "/home", "nfs", ["rw"]);
if has("o2"):
for partition in [lettre for lettre in string.lowercase] + ['logs', 'mail']:
for partition in list(string.lowercase) + ['logs', 'mail']:
mnt("nfs.adm.crans.org:/home-adh/%s" % (partition,), "/home/%s" % (partition,), "nfs", ["rw"]);