Ridley5 opened this issue on Jul 26, 2010 · 1724 posts
adp001 posted Wed, 25 August 2010 at 9:32 AM
Quote - The last little things I a need to learn is:
- In Python, find out if I'm on Windows, Linux, or Mac. I will use that info to decide what the name of the GUI application actually is. It is LuxPose.exe only on Windows.
- How to launch the application in those other environments. I'm assuming that spawnl will work. I'm using spawnl in Windows just fine. But the Python docs on spawnl say "Availability: Unix, Windows". This worries me, as it implies it is not available on Mac OSX. Is that just a typo? Does spawnl work in Linux and Mac?
Anything you need to know about the system a scipt is running on can be discovered using module "platform". Down to the processortype or the exact os version.
[http://docs.python.org/library/platform.html
](http://docs.python.org/library/platform.html)