changeset 65:7478d663561f

Add Babel soruce path to CLDR import script automatically for asmodai ;-).
author cmlenz
date Fri, 08 Jun 2007 13:22:37 +0000
parents 0406c51c5463
children 72e43f6881a9
files scripts/import_cldr.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/import_cldr.py
+++ b/scripts/import_cldr.py
@@ -22,6 +22,9 @@
 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,
Copyright (C) 2012-2017 Edgewall Software