diff options
author | Georg Brandl <georg@python.org> | 2013-01-09 12:26:50 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-01-09 12:26:50 +0100 |
commit | 68a10f38d3814e2292849306a815387c6259ce06 (patch) | |
tree | c4e686a0b5ef7f08f1bef6b33eedf0bc16d7f47f /pygments/cmdline.py | |
parent | 2ca4dbd36a06c8f7d2d6f349f5921d558c138b19 (diff) | |
parent | e9e7db92d57ea2ab45b1094a48168b0d7e5a72a3 (diff) | |
download | pygments-68a10f38d3814e2292849306a815387c6259ce06.tar.gz |
Merged in gentoo90/pygments-main/nsis (pull request #136: Add NSIS script lexer)
Diffstat (limited to 'pygments/cmdline.py')
-rw-r--r-- | pygments/cmdline.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pygments/cmdline.py b/pygments/cmdline.py index 1f14cf5d..6fa80305 100644 --- a/pygments/cmdline.py +++ b/pygments/cmdline.py @@ -192,6 +192,14 @@ def main(args=sys.argv): usage = USAGE % ((args[0],) * 6) + if sys.platform in ['win32', 'cygwin']: + try: + # Provide coloring under Windows, if possible + import colorama + colorama.init() + except ImportError: + pass + try: popts, args = getopt.getopt(args[1:], "l:f:F:o:O:P:LS:a:N:hVHg") except getopt.GetoptError, err: |