mestreamlit / test.py
yuanjie
update
ee83c82
raw
history blame contribute delete
971 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : Python.
# @File : test
# @Time : 2022/9/30 下午3:27
# @Author : yuanjie
# @WeChat : meutils
# @Software : PyCharm
# @Description :
from meutils.pipe import *
#
# def file_replace(file, old, new):
# p = Path(file)
# _ = (
# p.read_text().replace(old, new)
# )
# p.write_text(_)
#
#
# import streamlit as st
#
# st_home = Path(str(st).split("'")[-2]).parent
#
# to_replace = [
# (st_home/ "static/static/js/main.468e22f6.chunk.js", "https://github.com/streamlit/streamlit/issues/new/choose", "https://github.com/yuanjie-ai"),
# (st_home/ "static/static/js/main.468e22f6.chunk.js", "Streamlit Inc. All rights reserved.", "Betterme Inc. All rights reserved."),
# ]
# for i in to_replace:
# file_replace(*i)
#
print(open(get_resolve_path('./data/【东北计算机】恒生电子2021业绩说明会纪要.pdf', __file__), "rb").read())