diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-19 22:27:50 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-19 22:27:50 -0600 |
commit | 0cdd66e1b57b7ddd8e7006c3782e446ad91e3913 (patch) | |
tree | 8645956a9a193422c3aee75ddc3571d4adf1d4a3 | |
parent | d3f19c01581e2a7e977d226e6697ff7446c28b49 (diff) |
return constants after parsing
-rw-r--r-- | pokemontools/map_editor.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pokemontools/map_editor.py b/pokemontools/map_editor.py index 1cd9b02..43042cb 100644 --- a/pokemontools/map_editor.py +++ b/pokemontools/map_editor.py @@ -128,6 +128,7 @@ def get_constants(config=config): name, value = [s.strip() for s in line.split(' EQU ')] constants[name] = eval(value.split(';')[0].replace('$','0x').replace('%','0b')) config.constants = constants + return constants class Application(Frame): def __init__(self, master=None, config=config): |