feat: support dotenv

This commit is contained in:
Michael Bolin
2025-07-22 10:58:18 -07:00
parent 4082246f6a
commit afb94dee66
9 changed files with 34 additions and 2 deletions
+1 -1
View File
@@ -561,7 +561,7 @@ fn default_model() -> String {
/// function will Err if the path does not exist.
/// - If `CODEX_HOME` is not set, this function does not verify that the
/// directory exists.
fn find_codex_home() -> std::io::Result<PathBuf> {
pub fn find_codex_home() -> std::io::Result<PathBuf> {
// Honor the `CODEX_HOME` environment variable when it is set to allow users
// (and tests) to override the default location.
if let Ok(val) = std::env::var("CODEX_HOME") {