← Back to team overview

sikuli-driver team mailing list archive

[Bug 1514007] [NEW] Settings.getOS() and Env.getOS() return different values

 

Public bug reported:

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.

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1514007

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

Status in Sikuli:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1514007/+subscriptions


Follow ups