← Back to team overview

sikuli-driver team mailing list archive

[Question #207060]: How to pass command line argument to imported file

 

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

I have one question regd passing argument to an imported file.
My env is like this. I have main.sikuli file which has test cases/suite and reporting configuration. Each test case, will directly use methods, which are imported from common.sikuli. The common.sikuli in turn imports images folder. I have different folders for this. If I want to run for EN i manually use import EN_Images in common.sikuli file. If I want to run for other lang, again will change here. But, I want to handle this from command line to run on which localization I wish to (just passing an arg)

The problem is that passed arg can only be used in main.sikuli file. How do I pass this to common.sikuli, so that I configure the localization I wish to run. 

Thanks in adv.

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