← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #276722]: How to Convert Sikuli Script to Standalone Python Script

 

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

    Status: Needs information => Open

Chathura gave more information on the question:
Hi Raiman,
I use bbfreeze to convert .py scripts to standalone .exe in windows 7 machine.  It works great for pure python script.  Since Sikuli .py are jython version of python, I am not sure even to get it working.  I wrote following pure python script:

import org.sikuli.script.SikulixForJython
from sikuli.sikuli import *
import sys
importPath = r"C:\Users\uername\Desktop\Sikuli\app_test"
if not importPath in sys.path: sys.path.append(importPath)
def test():
    popup("works!")
    wait(10)
    pass

def launch():
    App.open("C:\Program Files\Myprogram\app.exe")


test()
launch()

I am getting following error message at line 1:
ImportError: No module named org.sikuli.script.SikulixForJython

my Jython works in command line. My Jython version is 2.2.1 on java1.7_55.
I am using PyCharm IDE running Python 2.7 _32bit version.

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