← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #423503]: To run python file containing sikuli scripts by double clicking it

 

Question #423503 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/423503

    Status: Open => Answered

RaiMan proposed the following answer:
As long as double clicking on .py files is connected to the Python
interpreter: no chance.

As already mentioned before
- either tell your windows, to run Jython when doubleclicking a .py file
- or wrap a commandfile around your script run, which in turn can then be double clicked

Another method might be, to pack your script into a runnable .jar which in turn will start with the JVM if double clicked
... but this needs some minimum Java programming 
some information and conveniences:
http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#prepare-and-use-your-own-jar-files-in-the-jython-environment

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.