20 lines
494 B
Python
Executable File
20 lines
494 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# Load modules from $CHARM_DIR/lib
|
|
import sys
|
|
sys.path.append('lib')
|
|
|
|
from charms.layer import basic
|
|
basic.bootstrap_charm_deps()
|
|
basic.init_config_states()
|
|
|
|
|
|
# This will load and run the appropriate @hook and other decorated
|
|
# handlers from $CHARM_DIR/reactive, $CHARM_DIR/hooks/reactive,
|
|
# and $CHARM_DIR/hooks/relations.
|
|
#
|
|
# See https://jujucharms.com/docs/stable/authors-charm-building
|
|
# for more information on this pattern.
|
|
from charms.reactive import main
|
|
main()
|