[web2py] Re: web2py shutil move or delete

2015-02-10 Thread Niphlod
once you chdir, all weird can happen. BTW, if you don't have any exception, is probably because your code is crafted NOT to raise any... what if you remove the "if os.path.isfile()" bit ? if indeed it's the code who can't delete the file, you'll get back the traceback you'll need to investigate.

[web2py] Re: web2py shutil move or delete

2015-02-10 Thread Yebach
What do you suggest then? This part work? the problem is inside if script.sc_status == 11: On Tuesday, February 10, 2015 at 2:21:13 PM UTC+1, Niphlod wrote: > > oh please DON'T chdir ! it's not thread safe > > On Tuesday, February 10, 2015 at 11:19:18 AM UTC+1, Yebach wrote: >> >> Hello >> I en

[web2py] Re: web2py shutil move or delete

2015-02-10 Thread Niphlod
oh please DON'T chdir ! it's not thread safe On Tuesday, February 10, 2015 at 11:19:18 AM UTC+1, Yebach wrote: > > Hello > I encounter an interesting problem or bug > > I have a app that runs some *.exe program that returns a file (*.out) to > be processed every couple of second. > If I want to