← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #289066]: Variable values not carrying over to functions called from separate scripts

 

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

    Status: Answered => Open

Jimmy Bartlett is still having a problem:
I appreciate the idea about the Excel sheet. Unfortunately, I need the
body text of the ads to contain more complex formatting than what I can
get away with in Excel. For right now, I'm using an external text file,
and launching an instance of Notepad with the path to the file, then
doing a select-all, copying it to the clipboard, closing Notepad, and
then pasting it into the body text box in the ad. It's a really lame way
to do it, I know, but it works. I'll be improving this code at some
point in the future, and maybe I'll find a way to import the necessary
text into the clipboard directly, bypassing the Notepad step, but for
now, this works.

However, I keep running into this problem where it says "[error]
AttributeError ( 'module' object has no attribute 'NAME' )" where NAME
is the function or variable that I'm trying to bring in from
Test_Function.sikuli. I've done the imports just as you described, but
can't seem to get it to pull the necessary functions and variables from
the other scripts. Do you think the underscores in the file names are
causing Sikuli to miss the other files?

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