Re: [Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0
Question #269048 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269048 Pierre Best posted a new comment: try: import org.sikuli.basics.SikuliXforJython except ImportError: import org.sikuli.basics.SikulixForJython from sikuli import * -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0
Question #269048 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269048 RaiMan posted a new comment: I have to say: not possible to have both in 1.1.0. So thanks for the workaround. I will put a hint to the docs. ... and try to find a more generic solution. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0
Question #269048 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269048 Description changed to: I've got a script which has to work in 1.0.1 and 1.1.0. My problem is that the import org.sikuli.basics.SikuliXforJython statement in 1.0.1 has changed to import org.sikuli.basics.SikulixForJython in 1.1.0 (Xf - xF). I'm looking at using importlib.import_module but wondered if there was a better way to do this -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0
New question #269048 on Sikuli: https://answers.launchpad.net/sikuli/+question/269048 I've got a script which has to work in 1.0.1 and 1.1.0. My problem is that the import org.sikuli.basics.SikuliXforJython statement in 1.0.1 has changed to import org.sikuli.basics.SikulixForJython in 1.0.1 (Xf - xF). I'm looking at using importlib.import_module but wondered if there was a better way to do this -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #269048]: How can I have a script that works in both 1.0.1 and 1.1.0
Question #269048 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269048 Status: Open = Solved Pierre Best confirmed that the question is solved: Ignore this question. I'm just going to do each import inside try: except: statements -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp