Skip to content

Commit 6e28d09

Browse files
committed
Simpler config function that will simplify AICodeBot-action testing
1 parent dfbadf5 commit 6e28d09

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

aicodebot/config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44

55

66
def get_config_file():
7-
if "AICODEBOT_CONFIG_FILE" in os.environ:
8-
config_file = Path(os.getenv("AICODEBOT_CONFIG_FILE"))
9-
else:
10-
config_file = Path(Path.home() / ".aicodebot.yaml")
11-
return config_file
7+
return Path(os.getenv("AICODEBOT_CONFIG_FILE", str(Path.home() / ".aicodebot.yaml")))
128

139

1410
def read_config():

0 commit comments

Comments
 (0)