INNER CODE UNIT · Python
GrayAppCreator
derisk-ai/OpenDerisk · packages/derisk-app/src/derisk_app/app.py:627
class GrayAppCreator(AppCreator):
config_file: str = CONFIG_ROOT_PATH + "/derisk-gray.toml"
class TestAppCreator(AppCreator):
config_file: str = CONFIG_ROOT_PATH + "/derisk-test.toml"
class CustomAppCreator(AppCreator):
def __init__(self, config_file=None):
super().__init__(config_file)
if config_file:
# Dynamically set the class attribute so that the create class method can get the correct configuration file
CustomAppCreator.config_file = config_file
def app(self):
return self.create