Running scripts without IDE #392
-
|
related issue: #393 Sikulix has the option to export a script as runnable jar. It allows me to run scripts without the IDE. Is there a similar option for Oculix ? I read the CLI reference - https://oculix.org/reference/cli/ - and tried to run the script with -e and -c arguments, but the IDE launches everytime. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
First: thanks for trying the path from SikuliX to Oculix. If you stay, you will surely benefit in the future. With SikuliX the feature to export a script as a runnable jar (script packed as compiled Python) or as jar (simply the script as plain Python) was experimental, without having said this clearly. The idea behind, especially the so called runnable version, was to hide the script content a bit more against misuse. Currently the feature is sleeping in Oculix, since one of the first goals is to make Oculix robust with the main features. But it should be possible to run an existing (coming from SikuliX) script jar using Oculix using the command line option |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your kind and fast answer. It also works with "basic" scripts and this is actually what I was looking for: a way to run a script without starting the IDE. I suggest, if possible, to update https://oculix.org/getting-started/installation/ to include this example. |
Beta Was this translation helpful? Give feedback.
-
|
@julienmerconsulting |
Beta Was this translation helpful? Give feedback.
First: thanks for trying the path from SikuliX to Oculix. If you stay, you will surely benefit in the future.
With SikuliX the feature to export a script as a runnable jar (script packed as compiled Python) or as jar (simply the script as plain Python) was experimental, without having said this clearly. The idea behind, especially the so called runnable version, was to hide the script content a bit more against misuse.
Currently the feature is sleeping in Oculix, since one of the first goals is to make Oculix robust with the main features.
This means, that the options to pack scripts into a jar are not yet available with the Oculix IDE.
But it should be possible to run an existing (coming…