alny way of not using glob?
edwardt at trillium.com
edwardt at trillium.com
Mon Apr 2 17:32:31 EDT 2001
Hi I am trying to get a list of the files in the current direcoty by
using glob. But I have the following trouble:
1. glob is a standard module in python 2.0 but not 1.5.2 whihc I am
currently using and the sys admin has no intention to upgrade it ...
2. glob is unix dependent? My script needs to run in windows also ...
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??
----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email abuse at newsone.net
More information about the Python-list
mailing list