def kthroom_dp(path): tmp = path.split('/') real_path = os.path.join(Logic.get_setting_value('dfolder'), tmp[0], tmp[1]) real_path = real_path.replace(path_app_root, '')[1:].replace('\\', '/') logger.debug('load:%s', real_path) return send_from_directory('', real_path)