blob: d41b7aaa99ddc8e8b9c34c95613f85636690580d (
plain) (
tree)
|
|
# -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: ISC
#
# Copyright (C) 2019 rsiddharth <s@ricketyspace.net>
#
# This file is part of nfsw.
#
import os
from flask import current_app
def read_junk(key):
r = os.path.join('junk', key)
with current_app.open_resource(r) as f:
return f.read().decode()
|