Settings.getOS() and Env.getOS() return different values

Bug #1514007 reported by Peterd on 2015-11-07
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sikuli
High
RaiMan

Bug Description

Per http://sikulix-2014.readthedocs.org/en/latest/globals.html#get-information-about-the-runtime-environment the following code should return the same value:

```
print Settings.getOS() # 1
print Env.getOS() # MAC
```

So it looks like `if Settings.getOS() == OS.MAC:` should work according to the docs, but it fails and tells me I'm not on a Mac unless I use `Env.getOS()` instead.

I can also use `Settings.isMac()` here, but I was following the docs and it tripped me up for a bit.

Karl (k-d) wrote :

print Settings.getOS()
print Env.getOS()
print Settings.getOSVersion()
print Env.getOSVersion()

Output:
0
WINDOWS
10.0
10.0

RaiMan (raimund-hocke) on 2016-02-17
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers