sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40037
Re: [Question #374925]: Editing, deleting Files
Question #374925 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/374925
Haden Derrington-Holburn gave more information on the question:
I don't need to create, write, or close any files. I just need to delete
two files within a directory, and this needs to not depend on whether or
not they are there.
So atm I have:
import sys
# Allows you to manipulate files
print sys.path[0]
# Prints to console the directory that the script was launched in
os.remove(sys.path[0] + '\\filename.DAT')
# This will delete the file hopefully
# That's all folks
Once the os.remove line actually debug properly. I can insert the actual
filename, and the repeat for the second file.
Thanks loads
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.