<s> import os <EOL> import sys <EOL> from flask import Flask <EOL> PROJECT_DIR , PROJECT_MODULE_NAME = os . path . split ( <EOL> os . path . dirname ( os . path . realpath ( __file__ ) ) <EOL> ) <EOL> FLASK_JSONRPC_PROJECT_DIR = os . path . join ( PROJECT_DIR , os . pardir ) <EOL> if os . path . exists ( FLASK_JSONRPC_PROJECT_DIR ) and not FLASK_JSONRPC_PROJECT_DIR in sys . path : <EOL> sys . path . append ( FLASK_JSONRPC_PROJECT_DIR ) <EOL> from flask_jsonrpc import JSONRPC <EOL> app = Flask ( __name__ ) <EOL> jsonrpc = JSONRPC ( app , '<STR_LIT>' , enable_web_browsable_api = True ) <EOL> @ jsonrpc . method ( '<STR_LIT>' ) <EOL> def index ( ) : <EOL> return u'<STR_LIT>' <EOL> import api . user <EOL> import api . article <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> app . run ( ) </s>
