[Tutor] tadaahh! But how to identify zLinux?
Albert-Jan Roskam
fomcl at yahoo.com
Mon Apr 1 22:04:21 CEST 2013
tadaah, I uploaded my first package some time ago: http://pypi.python.org/pypi/savReaderWriter
Let me use this opportunity to say THANKS to all of you for all your advise!
I'm still stuck with a question though. The program is supposed to work with zLinux (IBM system Z). But how do I know that this system is used? Here's my attempt:
# https://pic.dhe.ibm.com/infocenter/tivihelp/v10r1/index.jsp?topic=%2Fcom.ibm.tsam.doc_7.1%2Fc_prep_ms_for_lx_sysz.html
import sys, platform
if sys.platform.startswith("lin"):
#isSuSe = platform.linux_distribution() == "SuSe"
sysname, nodename, release, version, machine = os.uname()
isSLES = "suse linux enterprise server" in version.lower()
isRelease2dot6 = release.startswith("2.6")
isSystemZ = machine.startswith("s390") # ????
isZLinux = isSLES and isRelease2dot6 and isSystemZ
if isZLinux:
pass
Regards,
Albert-Jan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Tutor
mailing list