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.python.org/mailman/listinfo/python-list