ipts=['tacman.py'],
entry_points = {
'console_scripts' : [
'tacman = tacman.tacman',
]
},
description='A tactical, turn-based clone on PACMAN',
author='Paul Paterson',
author_email='ppater
On Jun 6, 12:30 pm, "Roger Upole" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Can os.path.isfile(x) ever return True after os.remove(x) has
> > successfully completed? (Windows 2003, Python 2.3)
>
> Yes. If another application has opened the file with FILE_SHARE_DELETE,
> os.remove
> Don't suppose you've got some kind of flashy software
> running which intercepts OS file-manipulation calls for
> Virus or Archiving purposes?
>
> TJG
As I mentioned in another reply, this server is virtual and so is the
drive. I'm wondering if this might also be significant.
Paul
--
http://
>
> Is the file on a network drive by any chance?
>
> Diez
No, but the server is actually a VMWare VM and the drive is a virtual
drive.
I'm thinking that this may be significant as it may be that the VMWare
VHD driver is the "flashy software running which intercepts OS file-
manipulation calls" t
Thanks for the response!
>
> I'd take the time to really examine the multiple threads of work you're
> running
> to make sure one of them isn't removing the file just as another creates it.
> Better still, use a locking semaphore around the code the creates/deletes the
> file
> to guarantee mutu
Thanks for the quick and detailed response!
> The most likely bet would seem to be a race condition
> as you suggest below. Doesn't have to be from a thread
> in your program, although I assume you know best about
> your own filesystem ;)
My first thought, after discounting the os.remove early r
Valentina Boycheva wrote:
Is there a way to make programs written in these two languages communicate
with each other? I am pretty sure that VBScript can access a Python script
because Python is COM compliant. On the other hand, Python might be able to
call a VBScript through WSH. Can somebody provi