[1.1.0] How to get the version ? Settings.getVersion missing

Asked by Zed

It seems that Settings.getVersion() is no longer valid, and I think in the code it's mentioned that it has been moved to the RunTime class. However, it doesn't seem to be a static method there so is there an equivalent way to call this function now?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

This is a doc error.

deprecated but still available
Env.getSikuliVersion()

preferred future usage:
RunTime.get().SikuliVersion

Revision history for this message
Zed (zh2eou) said :
#2

Hmm it'd be nice if the Settings stuff still remained for backwards compatibility. I'm still trying to get my scripts to be able to run on 1.0.1 as 1.1.0 is still not stable yet.

Also, is there something similar using Env for getting the OS name? Settings.osName is no longer valid as well.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

good point.

I just looked into the docs ;-)
http://sikulix-2014.readthedocs.org/en/latest/globals.html#get-information-about-the-runtime-environment

... and I will bring back the Settings. ... features, that are mentioned there (latest with the 2015-04-20 nightly)

Can you help with this problem?

Provide an answer of your own, or ask Zed for more information if necessary.

To post a message you must log in.