alny way of not using glob?

Fredrik Lundh fredrik at pythonware.com
Tue Apr 3 03:49:27 EDT 2001


edwardt at trillium.com wrote:

> 1. glob is a standard module in python 2.0 but not 1.5.2

nope.  glob is as old as Python.  if you cannot find it in
your 1.5.2 installation, your sysadms have messed up.

(workaround: copy it to your application directory)

> 2. glob is unix dependent?

nope.

> The code I am using is:
> targetFiles = reduce(operator.add, map(glob.glob, arguments[1:]))
>
> value is arguments[1:] is "*.py"
>
> when I print targetFile, it is:
> ['tp_tc_TNLC01.py', 'tp_tc_TNLC02.py', 'tp_tc_TNLC04.py', 'tp_tc_TNLC0
> 6.py', 'tp_tc_TNLC07.py', 'tp_tc_TNLC08.py', 'tp_tc_TNLC09.py', 'tp_tc
> _TNLC10.py', 'tp_tc_TNLC11.py', 'tp_tc_TNLC14.py', 'tp_tc_TNLC15.py',
> 'tp_tc_TNLC16.py', 'tp_tc_TNLC17.py']
>
> How can I get around that??

get around what?

Cheers /F





More information about the Python-list mailing list