I have a python code (name.py) written in separate file and now I want to execute that code using sikuli.
I have tried
        openApp but its not working
could be possible I did some mistake but still looking for working logic.
Do you want to run the file as an executable script or use its contents?
As an executable script make sure that the file is a valid script and will execute something when called and then use suprocess.Popen() from another .py file to execute that file.
To use the module's contents make sure the file is on the PYTHONPATH and use import name and everything within name will now be available for use.
How to execute python script file (filename.py) using sikuli