app.py
is the generic entry point for Abseil Python applications. This is a key difference from how python applications are typically run, where you identify a specific file as the entry point, e.g., $ python my_app.py
. When you run your application via Bazel, Bazel automatically determines the entry point by searching for app.run()
within a build rule’s source files.
When the program starts, app.run()
parses the flags, printing a usage message and failing if illegal flags or flag values are specified.
py_binary(
name = "hello",
deps = [],
srcs = ["hello.py"],
)
When using app.py
’s run()
to start your program, C++ flags will automatically be available.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4