← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #207316]: How to find out what OS I'm running on?

 

Question #207316 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/207316

    Status: Open => Answered

j proposed the following answer:
You should try one of these:

1. 
import os
myOS = os.environ.get('OS')

2. 
import os
myOS = os.name

3. 
import sys
myOS = sys.platform

I don't know which of these works for your problem because I don't have
a windows here to test it, but I hope one of these methods is the right
one.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.