← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #221908]: input command as global variable?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--1. avoid name clashes
your own "Settings" script should be named differently. e.g. mySettings.sikuli

--2. usage case: input one time at start up

This only works when script is run from command line and in the IDE the
first time the script is run.

# mySettings.sikuli
Settings.tsVersion = input("Enter your version ie.. 2013, 2014 etc:", "2014")

# in the script
import mySettings # the input is triggered 

App.open(r'c:\tssmoketest\\' + Settings.tsVersion)

Come back, if this is not what you need

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