"""Select a different set of images to use in the script depending on the OS/Version.""" if (Env.getOS() == OS.WINDOWS): # OS Version returns [ Major, ".", Minor ] OSVersionMajor = Env.getOSVersion()[0] OSVersionMinor = Env.getOSVersion()[2] if OSVersionMajor == "5": myImagePath = "c:\\Documents and Settings\\admin\\My Documents\\Sikuli\\images\\WindowsXP\\" elif OSVersionMajor == "6": myImagePath = "c:\\Documents and Settings\\admin\\My Documents\\Sikuli\\images\\Windows7\\" else: popup("Unsupported version of Windows. Exiting") exit() addImagePath(myImagePath)
Further Reading:
04-05-2012
Sikuli X-1.0rc3 (r905)
Sikuli X-1.0rc3 (r905)
No comments:
Post a Comment