← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #170365]: Name Error using Java classes in imported script --- workaround

 

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

eliteSKL posted a new comment:
I can't help with the java path bug thingy.... but this will get you a
screen shot.... i used this as part of an error process for scripts that
i run. so i can see what happens when they crash. don't know if this
helps or not.


import os
import getpass
import shutil

pathtosavefile=os.path.join(r"C:\Documents and Settings",
getpass.getuser(), "Desktop") #save to desktop

shutil.move(capture(SCREEN), pathtosavefile)  #put this as part of your
except statements.

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