Re: [Pydev-users] Python program running twice

2016-02-16 Thread Gary Roach
Thanks Fabio Your subdirectory suggestion was dead on. A good thing you pointed this out since the subdirectory was holding the backup copies of the files which I did not want changed. I changed the directory to chmod 700 and cleared the problem. Thanks Gary R. On 02/16/2016 10:20 AM, Fabio

Re: [Pydev-users] Python program running twice

2016-02-16 Thread Fabio Zadrozny
I don't think this is an issue in PyDev (I can't reproduce it and if something as grave was happening, I'm pretty sure there'd be other reports from it too). My guess is that you're doing an os.walk() which walks recursively and it's finding the name of the file more than once in a subdir and you'

[Pydev-users] Python program running twice

2016-02-14 Thread Gary Roach
I've had several occasions when a python program seems to loop through twice. Below is an example: from os import walk import subprocess f = [] x = "" for (dirpath, dirnames, filenames) in walk('.'): f.extend(filenames) f.sort() for x in f: if x[-3:]=='JPG': print(x)