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

RaiMan proposed the following answer:
I will set your request to "won't fix", because on one hand such an
implementation is rather complex with little effect and might raise
other problems, when used.

If some code can be run from line 101, then the code in line 1 - 100 
programmatically is totally independent and should be handled as such 
(if/else/while blocks, classes, defs and/or modules). 
Even the simple unit test workflow allows elegant solutions for setting up 
workflows from smaller parts.

If you want to stick with your approach, the simplest solution is to add a line 
containing 3 consecutive apostrophes before the first line, that should not run 
and the same line before the first statement that should be run.
you might add additional trailing text, to easily identify the lines.
this makes all lines between these 2 block comment lines to comment, so they 
will be skipped at runtime.
So you have your solution with one more line to be added.

-- 
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     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to