Spaces:
Build error
Build error
David Li commited on
Commit ·
e39042e
1
Parent(s): b65ee31
fix: make .env file
Browse files- pages/utils/util.py +3 -3
pages/utils/util.py
CHANGED
|
@@ -10,12 +10,12 @@ def remove_existing_file(func):
|
|
| 10 |
stream = os.popen('cd ~ && pwd')
|
| 11 |
root_dir = stream.read()
|
| 12 |
# check for .openbb_terminal/env in root_dir
|
| 13 |
-
if os.path.exists(os.path.join(root_dir.strip(), ".openbb_terminal", "env")) == False:
|
| 14 |
-
print("Did not find .openbb_terminal/env")
|
| 15 |
# create it
|
| 16 |
os.mkdir(os.path.join(root_dir.strip(), ".openbb_terminal"))
|
| 17 |
# make .env file
|
| 18 |
-
env_file = open(os.path.join(root_dir.strip(), ".openbb_terminal", "env"), "w")
|
| 19 |
|
| 20 |
sample_dir = root_dir.strip()
|
| 21 |
# remove /home/codespace/OpenBBUserData/exports/bbands.png already
|
|
|
|
| 10 |
stream = os.popen('cd ~ && pwd')
|
| 11 |
root_dir = stream.read()
|
| 12 |
# check for .openbb_terminal/env in root_dir
|
| 13 |
+
if os.path.exists(os.path.join(root_dir.strip(), ".openbb_terminal", ".env")) == False:
|
| 14 |
+
print("Did not find .openbb_terminal/.env")
|
| 15 |
# create it
|
| 16 |
os.mkdir(os.path.join(root_dir.strip(), ".openbb_terminal"))
|
| 17 |
# make .env file
|
| 18 |
+
env_file = open(os.path.join(root_dir.strip(), ".openbb_terminal", ".env"), "w")
|
| 19 |
|
| 20 |
sample_dir = root_dir.strip()
|
| 21 |
# remove /home/codespace/OpenBBUserData/exports/bbands.png already
|