Super merci cela fonctionne !

Simon

Le 06/07/2015 12:04, Hubert TOUVET a écrit :

filecopyto ne gère la copie que d'un fichier à la fois, pas avec les wildcards.


def install():
    import glob
    for fn in glob.glob('sys32/*'):
       filecopyto(fn,system32())


attention, par défaut, les redirections 32 bits sont activées.
Sur une machine 64 bits, cette instruction copiera dans C:\Windows\SysWOW64

Sinon il faut écrire :

def install():
    import glob
    with disable_file_system_redirection():
        for fn in glob.glob('sys32/*'):
            filecopyto(fn,system32())

Le 06/07/2015 11:57, Simon Fonteneau a écrit :
BOnjour


Je cherche a faire quelque chose comme ceci:

filecopyto(makepath('sys32','*'),os.path.join(system32()))

Mais il semblerai que je fasse une erreur dans la syntax?

Un petit coup de main ?

Simon

--



_______________________________________________
WAPT mailing list
WAPT@lists.tranquil.it
http://lists.tranquil.it/listinfo/wapt



_______________________________________________
WAPT mailing list
WAPT@lists.tranquil.it
http://lists.tranquil.it/listinfo/wapt