← Back to team overview

sikuli-driver team mailing list archive

[Question #278893]: Importing another script in current script

 

New question #278893 on Sikuli:
https://answers.launchpad.net/sikuli/+question/278893

Hi,

I have to call LAUNCHING_CEX.sikuli in my current working script.

In my current working script i have to call   LAUNCHING_CEX.sikuli

Code i have written in Current script is :

from sikuli import *
myScriptPath = "D:\PLM\CEX"       # path where i saved my LAUNCHING_CEX.sikuli
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import LAUNCHING_CEX

*******************************************************************************
Error Log:

Launching CEX Application
[error] script [ Dulim ] stopped with error in line 18
[error] NameError ( !!WHILE IMPORTING!! name 'wait' is not defined )
[error] --- Traceback --- error source first line: module ( function ) statement 3: LAUNCHING_CEX ( <module> ) wait(2)
[error] --- Traceback --- end --------------
*******************************************************************************

LAUNCHING_CEX.sikuli is running properly if i run the script separately.

But basically i want to call the LAUNCHING_CEX.sikuli in my current running script, but above error log i am facing.

Can you suggest how to resolve this issue.


regards,
Krishna




-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.