(self, name)
| 757 | 'the value you set is ignored') |
| 758 | |
| 759 | def hook(self, name): |
| 760 | if not self.args.hook: |
| 761 | return |
| 762 | if not hasattr(self, "hook_module"): |
| 763 | # first time, try to load the hook module |
| 764 | self.hook_module = load_source( |
| 765 | "pythonforandroid.hook", self.args.hook) |
| 766 | if hasattr(self.hook_module, name): |
| 767 | info("Hook: execute {}".format(name)) |
| 768 | getattr(self.hook_module, name)(self) |
| 769 | else: |
| 770 | info("Hook: ignore {}".format(name)) |
| 771 | |
| 772 | @property |
| 773 | def default_storage_dir(self): |
no test coverage detected