Bonjour,
Pourriez-vous m'aider à trouver les instructions python qui teste la présence d'un paquet WAPT sur le poste de travail ?
Je connais la fonction installed_softwares mais celle-ci ne traite que du nom d'application présent dans la liste des applications installées sur le poste. Ce dont j'ai besoin c'est de retrouver la présence ou non d'un paquet par son nom.
Je sèche un peu là !
Merci.
Patrice
[RESOLU] Tester si un paquet est intallé
Règles du forum
* Questions can be asked in English or in French. If the thread is started in English, stick to English, if it is started in French, stick to French.
* Vous pouvez poser vos questions en Français ou en Anglais. Si un sujet est commencé en français, merci de répondre en français. Si un sujet est commencé en anglais, merci de répondre en anglais.
* Please prefix of the title of the thread to [SOLVED] if it is solved.
* Merci de préfixer le titre du thread par [RESOLU] si il est résolu.
* Questions can be asked in English or in French. If the thread is started in English, stick to English, if it is started in French, stick to French.
* Vous pouvez poser vos questions en Français ou en Anglais. Si un sujet est commencé en français, merci de répondre en français. Si un sujet est commencé en anglais, merci de répondre en anglais.
* Please prefix of the title of the thread to [SOLVED] if it is solved.
* Merci de préfixer le titre du thread par [RESOLU] si il est résolu.
-
- Messages : 24
- Inscription : 21 oct. 2016 - 16:56
Dernière modification par Patrice_minagri le 10 janv. 2019 - 17:45, modifié 1 fois.
Code : Tout sélectionner
def install():
if WAPT.is_installed('tis-firefox'):
print(u'Paquet firefox installé')
Tranquil IT