AW: [Python-de] Betriebssystem in Python abzufragen
Josef Cihal
josef.cihal at irm.at
Thu Aug 8 16:40:02 EDT 2002
Funtkioniert leider bei mir net.
Python Version (1.5.2)
os.name()
danke
jc
-----Ursprüngliche Nachricht-----
Von: python-de-admin at python.net [mailto:python-de-admin at python.net]Im
Auftrag von Björn Platzen
Gesendet: Donnerstag, 8. August 2002 15:35
An: python-de at python.net
Betreff: Re: [Python-de] Betriebssystem in Python abzufragen
Hallo Josef
> Wie bekomme ich eine Information ueber Betribssystem?
>
> (unix, win32, etc.)
Wenn Du nur den Namen brauchst:
import os
mySys = os.name()
print "Betriebssystem: ", mySys
hth,
Björn
--
small office solutions - Lösungen für das Internet
www.sosnetz.de - info at sosnetz.de - 0700-SOSPHONE
_______________________________________________
Python-de maillist - Python-de at starship.python.net
http://starship.python.net/mailman/listinfo/python-de
More information about the Python-de
mailing list