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

Function main

pythonforandroid/entrypoints.py:5–20  ·  view source on GitHub ↗

Main entrypoint for running python-for-android as a script.

()

Source from the content-addressed store, hash-verified

3
4
5def main():
6 """
7 Main entrypoint for running python-for-android as a script.
8 """
9
10 try:
11 # Check the Python version before importing anything heavier than
12 # the util functions. This lets us provide a nice message about
13 # incompatibility rather than having the interpreter crash if it
14 # reaches unsupported syntax from a newer Python version.
15 check_python_version()
16
17 from pythonforandroid.toolchain import ToolchainCL
18 ToolchainCL()
19 except BuildInterruptingException as exc:
20 handle_build_exception(exc)

Calls 3

check_python_versionFunction · 0.90
ToolchainCLClass · 0.90
handle_build_exceptionFunction · 0.90