Re: glob and curly brackets
This would indeed be a nice feature. The glob module is only 75 lines of pure python. Perhaps you would like to enhance it? Take a look. -- http://mail.python.org/mailman/listinfo/python-list
Re: glob and curly brackets
You just need to literlize them with a forward slash. " globber = '/home/zhomer/test/{dir1*,dir2*}/{subdir1,subdir2}' globlist = glob.glob(globber) " globber = '/home/zhomer/test/\{dir1*,dir2*\}/\{subdir1,subdir2\}' globlist = glob.glob(globber) See if that works for you. -- http://mail.pytho