← Back to team overview

sikuli-driver team mailing list archive

[Question #676668]: Runnuble jar file does not created corectly

 

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

I apologize if this question has already been asked.

I use Sikuli 1.1.3
I add Yaml module to sikuli
I add sikulixapi.jar in folder with  sikuli.

I want to do runnable jar, but when I try to do this, I have error in IDE:

Compiling C:/Users/user/AppData/Roaming/Sikulix/SetupStuff/scriptCompiled\__run__.py ...
SyntaxError: ("mismatched input 'projects' expecting NEWLINE", ('C:\\Users\\user\\AppData\\Roaming\\Sikulix\\SetupStuff\\scriptCompiled\\__run__.py', 4, 14, 'import Sikuli projects.VKPOST_test_yaml\n'))

I don't find this folder 'SetupStuff' on my PC.

My project is very simple:

import yaml

config = yaml.load(open("C:\Users\user\Documents\Sikuli projects.VKPOST_test_yaml.sikuli\config.yml", 'r'))
print config['address']
openApp (config['address'])
openApp("C:\\Program Files\\Opera\\launcher.exe")
from datetime import datetime, timedelta
date1 = datetime.strftime(datetime.now(), "%d/%m/%Y")
date2 = "01/01/2019"
newdate1 = time.strptime(date1, "%d/%m/%Y")
newdate2 =  time.strptime(date2, "%d/%m/%Y")
if(newdate1>newdate2):
    print ("win")
    print newdate1
    print newdate2
else:
    print ("lose")
    print newdate1
    print newdate2
print SCREEN.getH()
print SCREEN.getW()

Can you help me?

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