sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16998
Re: [Question #224035]: Can Sikuli alter my code for me
Question #224035 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/224035
Status: Open => Answered
RaiMan proposed the following answer:
looks more like a "text find&replace" challenge.
Of course you can do that in Python and hence in Sikuli (since these are
Python scripts).
The basic approach:
- you have the basic application bundle, that has to be adopted (template)
- you have customer specific parameter file, that holds the information what should be changed and how (customsetup)
You open the customsetup file and learn what to do.
Then you open the template file, read it line by line, check wether it
has to be changed and write the line into a new app file.
This has to be done for all app files.
All this is basic Python file handling (open, read/write, close) and
search/replace using regular expressions.
Things like that can be achieved in many ways: with a shell script
utilizing sed/grep, a textprocessor having a macro feature, ...
*** This is not clear .... and archive the app for me in cocoa
Are you talking about the fact, that you are working on a Mac?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.