Padmanav commited on
Commit
d34b7bd
·
1 Parent(s): 79270b2

fix: replace hardcoded Windows path with cross-platform tempdir

Browse files
Files changed (1) hide show
  1. app/core/config.py +3 -1
app/core/config.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  from pydantic_settings import BaseSettings
2
  from pydantic import ConfigDict
3
  from functools import lru_cache
@@ -16,7 +18,7 @@ class Settings(BaseSettings):
16
  log_level: str = "info"
17
 
18
  # Repository
19
- repo_clone_dir: str = "C:/Users/KIIT/AppData/Local/Temp/repositories" # nosec B108
20
  max_repo_size_mb: int = 500
21
 
22
 
 
1
+ import tempfile
2
+ import os
3
  from pydantic_settings import BaseSettings
4
  from pydantic import ConfigDict
5
  from functools import lru_cache
 
18
  log_level: str = "info"
19
 
20
  # Repository
21
+ repo_clone_dir: str = os.path.join(tempfile.gettempdir(), "ai-code-review-repos") # nosec B108
22
  max_repo_size_mb: int = 500
23
 
24