Hi,
I found a bug in SPYDER when trying to create new folders within two "for
loops".
My code is:
import os
path=os.getcwd()
for modularity in xrange(0,26):
m=modularity/100
for part in xrange(1,5):
os.chdir(path)
exec("new_folder = '\mod%s_part%s'" % (m,part))
new_path=path + new_folder
if not os.path.exists(new_path):
os.makedirs(new_path)
os.chdir(new_path)
If I copy this to the console, the code works just fine, it creates 100
(25*4) new folders.
However, if I run this code in a new dedicated python interpreter, only 4
new folders are created.
Can anyone else verify this bug? I am using Spyder 2.2.5 that came with my
python(x,y) version 2.7.6.1.
Best,
GIlad
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.