sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24151
Re: [Question #243869]: How to run multiple scripts at a time
Question #243869 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243869
Status: Open => Answered
RaiMan proposed the following answer:
-- 1: running scripts using import …
is not a good idea.
imported scripts usually should not contain any code, that is run on import (indent level 0).
everything should at least be wrapped in def()s or even classes.
(one obvious reason: when using import in IDE one usually use
import sub
reload(sub)
to get chages done in parallel.
In your case, the code would be run twice.
)
so you normally have this:
import xyz
xyz.some_def()
or
from xyz import *
some_def()
but this is only a general comment ;-)
*** your problem
"SyntaxError ( "mismatched input '-' expecting NEWLINE", )"
the reason is sometimes not obvious and might be caused by an error in the line before.
you get a line number and a position in the line, where the interpreter found a - , that does not make sense syntactically here.
e.g. hyphens are not allowed in names, only _
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.