[IDE] Kill a script running with opened file locks the file - restart IDE or do not do it

Asked by 谢宝良 on 2017-12-31

The program run process forcibly interrupts the file close and the file is locked

file0=open(path,'w')
  for i in range(1000):
     pass
     file0.write(str)
file0.close()

I want to stop the process. But the next time you run, you'll lock the file. Only restart the system.

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-12-31
Last reply:
2017-12-31
RaiMan (raimund-hocke) said : #1

restarting the IDE should be sufficient.

But why do you do that at all?

Can you help with this problem?

Provide an answer of your own, or ask 谢宝良 for more information if necessary.

To post a message you must log in.