Modules do not need to import

Asked by can

due to an accident, i found that this module (sys,os,time) do not need to import in Sikuli, but their function can be run.
Is this true, is that the Sikuli's feature?
And what are the modules

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
can
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

yes, they are already imported during the startup of the Jython runtime environment by Sikuli, since they are needed there.

So it is not really a feature, but only something that works by accident ;-)

But it does not do any harm, if you import the same module more than once - the second and more times are simply ignored by Python.

Revision history for this message
can (ting) said :
#2

Understand
Thank you for your reply, RaiMan.