commit | 40bc92dc04aaf35661cf3ba55e1eff565b094fb9 | [log] [tgz] |
---|---|---|
author | Arnaldo Carvalho de Melo <acme@redhat.com> | Mon Jun 06 14:06:53 2011 -0300 |
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | Mon Jun 06 14:06:53 2011 -0300 |
tree | e99546873a800f823ee9ddc1d8e4f258eb29f927 | |
parent | 735621bbd2fa7ca81c8650a8c74f38066e1f3f08 [diff] |
procview gui: Load perf globally Used to work in previous python versions, but since at least 2.6.5 doing the import in one method and then trying to use perf.something on another doesn't work: File "/home/acme/git/tuna/tuna/gui/procview.py", line 317, in perf_init self.cpu_map = perf.cpu_map() NameError: global name 'perf' is not defined Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>