← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #674620]: Python module sys in sikuli does not work

 

Question #674620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674620

Summary changed to:
Python module sys in sikuli does not work

Description changed to:
hello!
help me please...

my sikuli script:

import os
import sys

logfile = open(sys.path[0] + 'LOGtest.txt', 'w')
logfile.write('Test_Ok123')
logfile.close()

when i try do it in sikuli IDE - it work ok and logfile create 
but when i try do it in pyhton like this:

 subprocess.call(['C:\\Program Files (x86)\\Sikuli X\\runsikulix.cmd' ,
'-r', scenario])

logfile(LOGtest.txt) do not create

that is it working only in sikuli IDE

why? and how i can do it?


thank you in advance

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