Skip to content

Commit

Permalink
add streamlit hack (#1)
Browse files Browse the repository at this point in the history
* streamlit cloud hack

* path hack print

* add logger

* streamlit hack
  • Loading branch information
szvsw authored Feb 9, 2024
1 parent 91897cc commit a61715f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
import logging
import sys

logger = logging.getLogger(__name__)
logging.basicConfig()
logger.setLevel(logging.INFO)

try:
from frontend import frontend_settings
except:
print("appending path...")
logger.info("appending path...")
sys.path.append("/mount/src/mit-campus-decarbonization")
import json
import os

Expand Down

0 comments on commit a61715f

Please sign in to comment.