sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12879
[Question #207537]: Quick question, creating log file
New question #207537 on Sikuli:
https://answers.launchpad.net/sikuli/+question/207537
Hi, i'm trying to create a log file with date time.
But it doesn't seem to work,
It won't create the txt file
here's the script:
import datetime
dir = "D:\\Games"
Filename = datetime.datetime.now().strftime("%Y%H%M%S.txt") #sets the filename
log = file(dir + Filename, "w") #create the file
log.close() # close the file/handles to the file.
Any idea which part is not correct?
thanks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.