bonjour je voudrais pouvoir exécuter un fichier.
quel est la fonction à utiliser ?
Version imprimable
bonjour je voudrais pouvoir exécuter un fichier.
quel est la fonction à utiliser ?
Comme en langage C, la commande system() fonctionne.
C'est dans le module os (voir la doc)
=> FAQ: http://python.developpez.com/faq/?pa...GenExecuteFileCitation:
system( command)
Execute the command (a string) in a subshell. This is implemented by calling the Standard C function system(), and has the same limitations. Changes to posix.environ, sys.stdin, etc. are not reflected in the environment of the executed command.