Windows 10, "Access to the path 'C:\SikuliOutputLog.txt' is denied" error

Asked by Bill Buse

I am trying to run an automated test that uses Sikuli on a Windows 10 system. When I run the test I am getting this error "Access to the path 'C:\SikuliOutputLog.txt' is denied" error due to Windows 10 having security locked down on C:\. Is there a way to change the path for this SikuliOutputLog.txt file to a different path?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Karl (k-d) said :
#1

SikuliOutputLog.txt doesn't look like a default filename used by Sikuli. Do you know where this filename is being set?

One way to set a log file is by using:
Settings.UserLogs = True
Debug.setUserLogFile("C:/Users/User/Desktop")
Debug.user("some text")

Note that currently logs aren't appended; they are overwritten.

See this page for more information:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html?highlight=debug.user#writing-and-redirecting-log-and-debug-messages

Can you help with this problem?

Provide an answer of your own, or ask Bill Buse for more information if necessary.

To post a message you must log in.