<s> import os <EOL> os . chdir ( '<STR_LIT>' ) <EOL> from plugit import routes <EOL> import actions <EOL> import config <EOL> from plugit import app as application <EOL> if not application . debug : <EOL> import logging <EOL> from logging . handlers import RotatingFileHandler <EOL> file_handler = RotatingFileHandler ( config . FLASK_LOG_PATH , <EOL> maxBytes = config . FLASK_LOG_SIZE ) <EOL> file_handler . setLevel ( logging . WARNING ) <EOL> application . logger . addHandler ( file_handler ) <EOL> routes . load_routes ( application , actions ) </s>
