]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add Babel soruce path to CLDR import script automatically for asmodai ;-).
authorChristopher Lenz <cmlenz@gmail.com>
Fri, 8 Jun 2007 13:22:37 +0000 (13:22 +0000)
committerChristopher Lenz <cmlenz@gmail.com>
Fri, 8 Jun 2007 13:22:37 +0000 (13:22 +0000)
scripts/import_cldr.py

index bc8d16690ef904c20314900816bf9a8debddbfd4..d5c5d22fb9fb2a1bcc58351872313ca776a9a66e 100755 (executable)
@@ -22,6 +22,9 @@ try:
 except ImportError:
     from elementtree.ElementTree import parse
 
+# Make sure we're using Babel source, and not some previously installed version
+sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), '..'))
+
 from babel import dates, numbers
 
 weekdays = {'mon': 0, 'tue': 1, 'wed': 2, 'thu': 3, 'fri': 4, 'sat': 5,