MCPcopy Index your code
hub / github.com/kivy/python-for-android / hook

Method hook

pythonforandroid/toolchain.py:759–770  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

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):

Callers 2

_build_packageMethod · 0.95
_finish_packageMethod · 0.95

Calls 2

load_sourceFunction · 0.90
formatMethod · 0.80

Tested by

no test coverage detected