Skip to content

Commit

Permalink
Use only filename of current exe
Browse files Browse the repository at this point in the history
  • Loading branch information
fourlastor committed May 18, 2024
1 parent 93a150f commit f9110d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ fn main() {
let jvm_location = current_location.join(JVM_LOCATION.iter().collect::<PathBuf>());
let config_file_path = current_location
.join(APP_FOLDER)
.join(current_exe.with_extension("json"));
.join(current_exe.with_extension("json").file_name().unwrap());
let config: Config = read_config(config_file_path).expect(&format!("Unable to read config file {}/{}/{}", current_location.to_string_lossy(), APP_FOLDER, current_exe.with_extension("json").to_string_lossy()));
let class_path: Vec<String> = config
.classPath
Expand Down

0 comments on commit f9110d7

Please sign in to comment.