diff 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
line wrap: on
line diff
--- a/tools/pygettext.py	Wed Nov 21 23:27:33 2001 +0000
+++ b/tools/pygettext.py	Wed Nov 21 23:35:45 2001 +0000
@@ -411,6 +411,14 @@
     else:
         options.toexclude = []
 
+    # on win32, do internal globbing
+    if sys.platform == 'win32':
+        import glob
+        expanded = []
+        for arg in args:
+            expanded.extend(glob.glob(arg))
+        args = expanded
+
     # slurp through all the files
     eater = TokenEater(options)
     for filename in args:

Roundup Issue Tracker: http://roundup-tracker.org/