Skip to content

Commit

Permalink
Fix legacy config file checks
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 19, 2023
1 parent d3880f6 commit 9a5152b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions chat_client/client_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
from config import Configuration
from utils.logging_utils import LOG

config_file_path = os.environ.get(
config_file_path = os.path.expanduser(os.environ.get(
"CHATCLIENT_CONFIG", "~/.local/share/neon/credentials_client.json"
)
))
if os.path.isfile(config_file_path):
LOG.warning(f"Using legacy configuration at {config_file_path}")
config = Configuration(from_files=[config_file_path])
Expand Down
8 changes: 4 additions & 4 deletions chat_server/server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
from utils.logging_utils import LOG
from utils.database_utils import DatabaseController

server_config_path = os.environ.get(
server_config_path = os.path.expanduser(os.environ.get(
"CHATSERVER_CONFIG", "~/.local/share/neon/credentials.json"
)
database_config_path = os.environ.get(
))
database_config_path = os.path.expanduser(os.environ.get(
"DATABASE_CONFIG", "~/.local/share/neon/credentials.json"
)
))


def _init_db_controller(db_config: dict) -> Optional[DatabaseController]:
Expand Down

0 comments on commit 9a5152b

Please sign in to comment.