import .sikuli file received in the command

Asked by Mikeldi Latorre

Hello,

Can I import a .sikuli file received in the command?

something like "from sys.argv[1] import *"

Thanks in advance

Question information

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

you might try:

exec("from %s import *"%(sys.argv[1]))

Revision history for this message
Mikeldi Latorre (magodiez) said :
#2

Perfect,

Thanks... X)

Revision history for this message
Mikeldi Latorre (magodiez) said :
#3

Thanks RaiMan, that solved my question.