Minor fix to the generate-exports.py script

Now that we correctly export the ol.animation.*, ol.easing.* and ol.coordinate.* symbols we can make the generate-exports.py script work for more cases.
This commit is contained in:
Éric Lemoine
2013-05-09 22:46:08 +02:00
parent 4b7f3e85c2
commit ca332a3fef

View File

@@ -278,7 +278,7 @@ def main(argv):
components = m.group('name').split('.')
if re.match(r'[A-Z]', components[-1]):
requires.add(name)
elif len(components) > 2:
elif len(components) > 1:
requires.add('.'.join(components[:-1]))
continue
raise RuntimeError(line)