Skip to content

Commit

Permalink
fix(dark_market): fix change cwd logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontaigu committed May 24, 2023
1 parent ddb3451 commit 4eac45f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tfhe/examples/dark_market.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ fn test_volume_match_fhe(
fhe_function: fn(&mut [RadixCiphertextBig], &mut [RadixCiphertextBig], &ServerKey),
) {
let working_dir = std::env::current_dir().unwrap();
std::env::set_current_dir(working_dir.join("tfhe")).unwrap();
if working_dir.file_name().unwrap() != std::path::Path::new("tfhe") {
std::env::set_current_dir(working_dir.join("tfhe")).unwrap();
}

println!("Generating keys...");
let time = Instant::now();
Expand Down

0 comments on commit 4eac45f

Please sign in to comment.