1 '''
2 Wraps all global constants in a convenient package.
3
4 @author: Pete Brunet
5 @author: Peter Parente
6 @author: Brett Clippingdale
7 @organization: IBM Corporation
8 @copyright: Copyright (c) 2005, 2007 IBM Corporation
9 @license: The BSD License
10
11 @author: Ramona Bunk
12 @organization: IT Science Center Ruegen gGmbH, Germany
13 @copyright: Copyright (c) 2007, 2008 ITSC Ruegen
14 @license: The BSD License
15
16 All rights reserved. This program and the accompanying materials are made
17 available under the terms of the BSD license which accompanies
18 this distribution, and is available at
19 U{http://www.opensource.org/licenses/bsd-license.php}
20 '''
21
22 from Color import *
23 from Event import *
24 from Input import *
25 from Output import *
26 from Parsing import *
27 from Semantic import *
28 from Spelling import *
29 from API import *
30
32 '''
33 Registers new constant names and values. As soon as a repeat constants
34 between those that are already registered and those that are going to be
35 registered is found, registration ceases. This is an optimization for
36 L{AEScript <AEScript.AEScript>}s that appear in all L{AETier}s but don't want to wait to have all
37 their constants registered numerous times.
38
39 @param kwargs: Constant name/value pairs
40 @type kwargs: dictionary
41 '''
42 g = globals()
43 for name, val in kwargs.items():
44 if name in g:
45 continue
46 g[name] = val
47