[TYPO3-doc] Python on MAC: How does it call the platform?
Martin Bless
m.bless at gmx.de
Sun Sep 2 14:56:44 CEST 2012
A question to those having Python on their Mac(book) or Mac in a VM:
Q: What value do you get for 'sys.platform' [1]?
To find out::
$ python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.platform
'linux2'
or::
$ python -c "import sys; print sys.platform"
linux2
Is it 'darwin' as the Python docs [1] say? Or do we have variants?:
=================== ==============
System platform value
=================== ==============
Linux (2.x and 3.x) 'linux2'
Windows 'win32'
Windows/Cygwin 'cygwin'
Mac OS X 'darwin'
OS/2 'os2'
OS/2 EMX 'os2emx'
RiscOS 'riscos'
AtheOS 'atheos'
=================== ==============
[1] http://docs.python.org/library/sys.html#sys.platform
Martin
--
Certified TYPO3 Integrator | TYPO3 Documentation Team Member
http://mbless.de
More information about the TYPO3-project-documentation
mailing list