blob: d41b7aaa99ddc8e8b9c34c95613f85636690580d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# -*- 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()
|