#1 Le 09/03/2014, à 10:48
- Gaara
[Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
Bonjour,
Je suis en train de développer une application mais j'aurais besoin de votre contribution !
Je dois détecter le retour de:
python -c "import platform ; a=platform.dist() ; print a"
pour: Precise, Quantal, Raring, Saucy, et Trusty
Pour moi, ça donne:
~$ python -c "import platform ; a=platform.dist() ; print a"
('Ubuntu', '13.10', 'saucy')
Mais j'aurais besoin du résultat des autres distributions, et être certain de mon code, sans pour autant installer chaque distribution !
Merci
Dernière modification par gaara92 (Le 09/03/2014, à 10:50)
Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid
<code>zenity --question --title "Alert" --text "Microsoft Windows has been found! Would you like to remove it?"</code>
Hors ligne
#2 Le 09/03/2014, à 10:50
- frenchy82
Re : [Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
Bonjour,
python -c "import platform ; a=platform.dist() ; print a"
('Ubuntu', '12.04', 'precise')
Hors ligne
#3 Le 09/03/2014, à 10:58
- Gaara
Re : [Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
Merci frenchy82 !
Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid
<code>zenity --question --title "Alert" --text "Microsoft Windows has been found! Would you like to remove it?"</code>
Hors ligne
#4 Le 09/03/2014, à 11:18
- ljere
Re : [Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
bonjour voici les mien
sur mon fixe
python -c "import platform ; a=platform.dist() ; print a"
('Ubuntu', '12.04', 'precise')
sur ma cubie
python -c "import platform ; a=platform.dist() ; print a"
('debian', '7.4', '')
sur mon portable
python -c "import platform ; a=platform.dist() ; print a"
('Ubuntu', '13.10', 'saucy')
ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon
Hors ligne
#5 Le 09/03/2014, à 11:24
- frenchy82
Re : [Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
Re,
/# python -c "import platform ; a=platform.dist() ; print a"
('Ubuntu', '14.04', 'trusty')
Hors ligne
#6 Le 09/03/2014, à 11:24
- Gaara
Re : [Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
Merci ljere,
sur ma cubie
python -c "import platform ; a=platform.dist() ; print a" ('debian', '7.4', '')
C'est un debian wheezy?
Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid
<code>zenity --question --title "Alert" --text "Microsoft Windows has been found! Would you like to remove it?"</code>
Hors ligne
#7 Le 09/03/2014, à 11:26
- Gaara
Re : [Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
@frenchy82:
Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid
<code>zenity --question --title "Alert" --text "Microsoft Windows has been found! Would you like to remove it?"</code>
Hors ligne
#8 Le 09/03/2014, à 11:33
- ljere
Re : [Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
yep c'est une wheezy
ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon
Hors ligne
#9 Le 09/03/2014, à 11:54
- Gaara
Re : [Facile] Pouvez vous m'aider ? (oui oui vous pouvez!)
Ok, j'avais pas pensé à Debian...
Wheezy est donc ajouté dans la liste.
Il me manque plus que quantal et raring, mais je devine le résultat.
Merci à vous 2 !
Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid
<code>zenity --question --title "Alert" --text "Microsoft Windows has been found! Would you like to remove it?"</code>
Hors ligne