Re: newb: glob on windows os.renames creates many nested folders

2007-09-23 Thread Peter Otten
crybaby wrote: > when I do this in my python code and run it in windows xp, it creates > ctemp//.../.../../ so on and creates file t. Not file starting > with the name complist and ending with .txt (complist*.txt). Any idea > why this may be? glob only works in *nix not on windows? > > os.r

newb: glob on windows os.renames creates many nested folders

2007-09-22 Thread crybaby
when I do this in my python code and run it in windows xp, it creates ctemp//.../.../../ so on and creates file t. Not file starting with the name complist and ending with .txt (complist*.txt). Any idea why this may be? glob only works in *nix not on windows? os.renames(glob.glob('complist*.