> 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
[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
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