#!/usr/bin/env python3

import json
import os
from shlex import quote as shlex_quote

from tistory.api import Tistory, TistoryError
from tistory.auth import TistoryOAuth2


def load_config(fname):
    fname = shlex_quote(fname)
    cf_path = os.path.dirname(os.path.realpath(__file__))
    abspath = os.path.abspath(os.path.join(cf_path, '../config/', fname))

    with open(abspath) as data:
        config = json.loads(data.read())

    return config

if __name__ == "__main__":
    pass

#!/usr/bin/env python3

from tistory.api import Tistory, TistoryError
from tistory.auth import TistoryOAuth2

if __name__ == "__main__":
    pass

Remove load_config() from the tistory module