Skip to content

Commit

Permalink
use expanduser (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertdeng123 authored Dec 6, 2024
1 parent 34f6adc commit 3a58a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devservices/utils/devenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_coderoot() -> str:
config_path = os.path.join(home, ".config", "sentry-devenv", "config.ini")
try:
devenv_config: ConfigParser = read_config(config_path)
return devenv_config.get("devenv", "coderoot", fallback="")
return os.path.expanduser(devenv_config.get("devenv", "coderoot", fallback=""))
except (FileNotFoundError, NoSectionError, NoOptionError):
# TODO: Handle the case where there is no config file or the coderoot is not set
raise Exception("Failed to read code root from config")
Expand Down

0 comments on commit 3a58a3b

Please sign in to comment.