Mercurial > p > roundup > code
comparison tools/pygettext.py @ 401:a930feb07dc4
Added globbing for win32, and sample marking in a 2nd file to test it
| author | Jürgen Hermann <jhermann@users.sourceforge.net> |
|---|---|
| date | Wed, 21 Nov 2001 23:35:45 +0000 |
| parents | 139593f02ff6 |
| children | 3844451f7a30 |
comparison
equal
deleted
inserted
replaced
| 400:139593f02ff6 | 401:a930feb07dc4 |
|---|---|
| 409 options.excludefilename) | 409 options.excludefilename) |
| 410 sys.exit(1) | 410 sys.exit(1) |
| 411 else: | 411 else: |
| 412 options.toexclude = [] | 412 options.toexclude = [] |
| 413 | 413 |
| 414 # on win32, do internal globbing | |
| 415 if sys.platform == 'win32': | |
| 416 import glob | |
| 417 expanded = [] | |
| 418 for arg in args: | |
| 419 expanded.extend(glob.glob(arg)) | |
| 420 args = expanded | |
| 421 | |
| 414 # slurp through all the files | 422 # slurp through all the files |
| 415 eater = TokenEater(options) | 423 eater = TokenEater(options) |
| 416 for filename in args: | 424 for filename in args: |
| 417 if filename == '-': | 425 if filename == '-': |
| 418 if options.verbose: | 426 if options.verbose: |
