sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08671
Re: [Question #187279]: Right Click Context Menu In Tree View Invisible
Question #187279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/187279
Status: Open => Answered
RaiMan proposed the following answer:
If I understand right: you want to delete something in a folder.
This is much easier to do it with the appropriate Python features from
module os and os.path:
dir = "c:/some-folder/some-sub-folder/Folder-1"
scripts = ["script1", "script2","script3", "script4","script5"]
for script in scripts:
os.remove(os.path.join(dir, script))
No need to use backslashes, these will be replaced internally correctly.
If this is not what you want, come back.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.