diff options
Diffstat (limited to 'bitbake/lib/bb/methodpool.py')
-rw-r--r-- | bitbake/lib/bb/methodpool.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/methodpool.py b/bitbake/lib/bb/methodpool.py index f43c4a0580..1485b1357d 100644 --- a/bitbake/lib/bb/methodpool.py +++ b/bitbake/lib/bb/methodpool.py | |||
@@ -27,7 +27,7 @@ | |||
27 | a method pool to do this task. | 27 | a method pool to do this task. |
28 | 28 | ||
29 | This pool will be used to compile and execute the functions. It | 29 | This pool will be used to compile and execute the functions. It |
30 | will be smart enough to | 30 | will be smart enough to |
31 | """ | 31 | """ |
32 | 32 | ||
33 | from bb.utils import better_compile, better_exec | 33 | from bb.utils import better_compile, better_exec |
@@ -43,8 +43,8 @@ def insert_method(modulename, code, fn): | |||
43 | Add code of a module should be added. The methods | 43 | Add code of a module should be added. The methods |
44 | will be simply added, no checking will be done | 44 | will be simply added, no checking will be done |
45 | """ | 45 | """ |
46 | comp = better_compile(code, "<bb>", fn ) | 46 | comp = better_compile(code, modulename, fn ) |
47 | better_exec(comp, __builtins__, code, fn) | 47 | better_exec(comp, None, code, fn) |
48 | 48 | ||
49 | # now some instrumentation | 49 | # now some instrumentation |
50 | code = comp.co_names | 50 | code = comp.co_names |
@@ -59,7 +59,7 @@ def insert_method(modulename, code, fn): | |||
59 | def check_insert_method(modulename, code, fn): | 59 | def check_insert_method(modulename, code, fn): |
60 | """ | 60 | """ |
61 | Add the code if it wasnt added before. The module | 61 | Add the code if it wasnt added before. The module |
62 | name will be used for that | 62 | name will be used for that |
63 | 63 | ||
64 | Variables: | 64 | Variables: |
65 | @modulename a short name e.g. base.bbclass | 65 | @modulename a short name e.g. base.bbclass |
@@ -81,4 +81,4 @@ def get_parsed_dict(): | |||
81 | """ | 81 | """ |
82 | shortcut | 82 | shortcut |
83 | """ | 83 | """ |
84 | return _parsed_methods | 84 | return _parsed_methods |