Spaces:
Build error
Build error
David Li commited on
Commit ·
ad4685a
1
Parent(s): cd5a04d
fix: try again
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import os
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
stream = os.popen('cd ~ && pwd')
|
| 6 |
root_dir = stream.read()
|
|
@@ -11,6 +12,8 @@ if os.path.exists(os.path.join(root_dir.strip(), ".openbb_terminal", ".env")) ==
|
|
| 11 |
os.mkdir(os.path.join(root_dir.strip(), ".openbb_terminal"))
|
| 12 |
# make .env file
|
| 13 |
env_file = open(os.path.join(root_dir.strip(), ".openbb_terminal", ".env"), "w")
|
|
|
|
|
|
|
| 14 |
|
| 15 |
st.write("""
|
| 16 |
# Technical Analysis Web Application
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import os
|
| 3 |
+
import dotenv
|
| 4 |
+
from openbb_terminal.core.config.paths import SETTINGS_ENV_FILE
|
| 5 |
|
| 6 |
stream = os.popen('cd ~ && pwd')
|
| 7 |
root_dir = stream.read()
|
|
|
|
| 12 |
os.mkdir(os.path.join(root_dir.strip(), ".openbb_terminal"))
|
| 13 |
# make .env file
|
| 14 |
env_file = open(os.path.join(root_dir.strip(), ".openbb_terminal", ".env"), "w")
|
| 15 |
+
# dotenv.set_key(SETTINGS_ENV_FILE, "PLOT_ENABLE_PYWRY", "0")
|
| 16 |
+
dotenv.set_key("OPENBB_PLOT_ENABLE_PYWRY", 0)
|
| 17 |
|
| 18 |
st.write("""
|
| 19 |
# Technical Analysis Web Application
|