Skip to content

Commit

Permalink
use env::current_dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Dec 24, 2024
1 parent f2aef84 commit d80a39c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pumpkin-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ trait LoadConfiguration {
where
Self: Sized + Default + Serialize + DeserializeOwned,
{
let exe_path = env::current_exe().unwrap();
let exe_dir = exe_path.parent().unwrap();
let exe_dir = env::current_dir().unwrap();
let config_dir = exe_dir.join(CONFIG_ROOT_FOLDER);
if !config_dir.exists() {
log::debug!("creating new config root folder");
Expand Down

0 comments on commit d80a39c

Please sign in to comment.