cmlenz@8: #!/usr/bin/env python cmlenz@8: # -*- coding: utf-8 -*- cmlenz@8: # cmlenz@8: # Copyright (C) 2007 Edgewall Software cmlenz@8: # All rights reserved. cmlenz@8: # cmlenz@8: # This software is licensed as described in the file COPYING, which cmlenz@8: # you should have received as part of this distribution. The terms cmlenz@8: # are also available at http://babel.edgewall.org/wiki/License. cmlenz@8: # cmlenz@8: # This software consists of voluntary contributions made by many cmlenz@8: # individuals. For the exact contribution history, see the revision cmlenz@8: # history and logs, available at http://babel.edgewall.org/log/. cmlenz@8: cmlenz@8: from pprint import pprint cmlenz@8: import sys cmlenz@8: cmlenz@33: from babel.localedata import load cmlenz@33: cmlenz@233: if len(sys.argv) > 2: cmlenz@233: pprint(load(sys.argv[1]).get(sys.argv[2])) cmlenz@233: else: cmlenz@233: pprint(load(sys.argv[1]))