← Back to team overview

sikuli-driver team mailing list archive

[Question #246389]: import failed in .skl file

 

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

Hello team,

i have a scenerio,
i have 2 .sikuli files at folder: e:\Garima\testCase
1) StepToPerform.sikuli
2) logFileGeneration.sikuli

in first file i have a statement "import logFileGeneration"
i have converted stepToPerform.sikuli to ExecuteStep.skl

Now i am executing this .skl file from command prompt, its giving me an error saying
[error] importError(No module named logFile generation)

i tried adding these line in StepToPerfoem.sikuli

myScriptPath = os.path.dirname(getBundlePath())
if not myScriptPath in sys.path:
    sys.path.append(myScriptPath)
import logFileGeneration
reload(logFileGeneration)
from logFileGeneration import *

still the same error i got

i tried putting "sikuli import *" in logFileGeneration.py file as well.

if possible provide a peace of code to resolve my problem

Regards and Thanks
Garima


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.