Lancer un logiciel avec un programme python
Lacho
-
georges97 Messages postés 20436 Date d'inscription Statut Contributeur Dernière intervention -
georges97 Messages postés 20436 Date d'inscription Statut Contributeur Dernière intervention -
bonsoir à tous, je suis nouveau dans la programmation python. Depuis peu, je bloque sur une question vitale à la bonne marche de mon projet en cours.
"Qu'elle ligne de code utilise t-on en programmation python pour faire exécuter un logiciel (VLC par exemple) ?"
NB: Sous windows
merciiiiiiiiiiiiiii
"Qu'elle ligne de code utilise t-on en programmation python pour faire exécuter un logiciel (VLC par exemple) ?"
NB: Sous windows
merciiiiiiiiiiiiiii
A voir également:
- Lancer un logiciel avec un programme python
- Logiciel - Guide
- Money logiciel - Télécharger - Comptabilité & Facturation
- Lancer un programme au démarrage windows 10 - Guide
- Logiciel de sauvegarde gratuit - Guide
- Logiciel montage vidéo gratuit windows 10 - Guide
3 réponses
Bonjour,
voir : https://docs.python.org/fr/3/library/subprocess.html
import subprocess
subprocess.run('C:\\Program Files\\VideoLAN\\VLC\\vlc.exe')
ou
subprocess.run(r'C:\Program Files\VideoLAN\VLC\vlc.exe')
voir : https://docs.python.org/fr/3/library/subprocess.html