summaryrefslogtreecommitdiff
path: root/packages/__init__.py
blob: d77badef70ae0aa7569a9a03f04fc35ad7e73727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python
import os
import yaml
import classes

##friendly shortcuts
#nature = classes.Nature

metadata = yaml.load_all(open(os.path.join(os.path.dirname(__file__),"metadata.yaml"),"r"))
for each in metadata:
    name = each["name"]
    classes2 = each["classes"]
    #locals()["classes"].__getattribute__("Nature")
    #setattr(__builtin__,name,(locals()["classes"]).__getattribute__(classes2[0]))
    exec "%s = locals()[\"classes\"].__getattribute__(classes2[0])" % (name)