David Li commited on
Commit
a3b7be9
·
1 Parent(s): 3d4e208

fix: update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -1,17 +1,17 @@
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()
8
  # check for .openbb_terminal/env in root_dir
9
- if os.path.exists(os.path.join(root_dir.strip(), ".openbb_terminal", ".env")) == False:
10
- print("Did not find .openbb_terminal/.env")
11
- # create it
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(SETTINGS_ENV_FILE,"OPENBB_PLOT_ENABLE_PYWRY", 0)
17
 
 
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()
8
  # check for .openbb_terminal/env in root_dir
9
+ # if os.path.exists(os.path.join(root_dir.strip(), ".openbb_terminal", ".env")) == False:
10
+ # print("Did not find .openbb_terminal/.env")
11
+ # # create it
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(SETTINGS_ENV_FILE,"OPENBB_PLOT_ENABLE_PYWRY", 0)
17