mirror of
https://github.com/PaiGramTeam/FixMiYouShe.git
synced 2024-11-28 02:06:38 +00:00
19 lines
434 B
Python
19 lines
434 B
Python
from persica.context.application import ApplicationContext
|
|
from persica.applicationbuilder import ApplicationBuilder
|
|
|
|
|
|
def main():
|
|
app = (
|
|
ApplicationBuilder()
|
|
.set_application_context_class(ApplicationContext)
|
|
.set_scanner_packages("src/core")
|
|
.build()
|
|
)
|
|
app.class_scanner.flash("src/plugins")
|
|
app.class_scanner.flash("src/route")
|
|
app.run()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|