[2.0.4] Settings.getOS() and Env.getOS() return different values --- to be checked
Bug #1514007 reported by
Peterd
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
Per http://
```
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.
Changed in sikuli: | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.1 |
summary: |
- Settings.getOS() and Env.getOS() return different values + [2.0.4] Settings.getOS() and Env.getOS() return different values --- to + be checked |
Changed in sikuli: | |
milestone: | 1.1.1 → 2.0.5 |
status: | Fix Committed → In Progress |
importance: | High → Medium |
To post a comment you must log in.
print Settings.getOS() getOSVersion( )
print Env.getOS()
print Settings.
print Env.getOSVersion()
Output:
0
WINDOWS
10.0
10.0