Re: attribute error using fnmatch

2006-06-05 Thread Fredrik Lundh
> did you verify that the code you posted really has the problem (it does > use the 'os' module which isn't important message.replace("important", "imported") -- http://mail.python.org/mailman/listinfo/python-list

Re: attribute error using fnmatch

2006-06-04 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > listof_files = [i for i in f if not fnmatch(os.path.join(r,i),pat) and > os.path.isfile(os.path.join(r,i))] > ... > .. > > I get this error: > File "C:\Python24\Lib\fnmatch.py", line 37, in fnmatch > pat = os.path.normcase(pat) > File "C:\Python24\lib\ntpath.py

attribute error using fnmatch

2006-06-04 Thread s99999999s2003
hi i have script like this: from fnmatch import fnmatch from glob import glob ... f = ['file1','file2','file3'] r = "d:\\somepath" pat = "*.bat" listof_files = [i for i in f if not fnmatch(os.path.join(r,i),pat) and os.path.isfile(os.path.join(r,i))] ... .. I get this error: File "C:\Pyth