Line | |
---|
1 | # This file is generated by /home/steve/anuga/anuga_core/setup.py |
---|
2 | # It contains system_info results at the time of building this package. |
---|
3 | __all__ = ["get_info","show"] |
---|
4 | |
---|
5 | |
---|
6 | def get_info(name): |
---|
7 | g = globals() |
---|
8 | return g.get(name, g.get(name + "_info", {})) |
---|
9 | |
---|
10 | def show(): |
---|
11 | for name,info_dict in globals().items(): |
---|
12 | if name[0] == "_" or type(info_dict) is not type({}): continue |
---|
13 | print(name + ":") |
---|
14 | if not info_dict: |
---|
15 | print(" NOT AVAILABLE") |
---|
16 | for k,v in info_dict.items(): |
---|
17 | v = str(v) |
---|
18 | if k == "sources" and len(v) > 200: |
---|
19 | v = v[:60] + " ...\n... " + v[-60:] |
---|
20 | print(" %s = %s" % (k,v)) |
---|
21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.