plateform info.
Maurice LING
mauriceling at acm.org
Thu Sep 22 03:36:56 EDT 2005
More information about the Python-list mailing list
Thu Sep 22 03:36:56 EDT 2005
- Previous message (by thread): plateform info.
- Next message (by thread): plateform info.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Mikael Olofsson wrote: > Monu Agrawal wrote: > >> Hi I want to know whether the program is being run on windows or on >> Xnix. Is there any variable or method which tells me that it's windows? > > > Will this help? > > >>> import sys > >>> sys.platform > 'win32' > > There is also the platform module, that can give you a lot more > information about the your platform. Try help(platform). > > /MiO Adding onto this (which may be of need), but if this seems to be a hijack, my apologies...... Is there a way of getting the path to the site-packages directory? Considering that Mac OSX with Fink installs python libraries in /sw/lib/python<version>, Mac OSX itself has python libraries in /System/Library/Frameworks/Python.framework/Versions/<version>/lib, etc etc... maurice
- Previous message (by thread): plateform info.
- Next message (by thread): plateform info.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list