mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
clear lib path cache on sync
This commit is contained in:
parent
69e0fc3aae
commit
a882a87800
1 changed files with 3 additions and 0 deletions
|
|
@ -276,6 +276,9 @@ fn handle_version_install_or_update(state: &State, choice: MainMenuChoice) -> Re
|
||||||
// Remove sync marker before attempting sync
|
// Remove sync marker before attempting sync
|
||||||
let _ = remove_file(&state.sync_complete_marker);
|
let _ = remove_file(&state.sync_complete_marker);
|
||||||
|
|
||||||
|
// clear possibly invalidated libpython path cache
|
||||||
|
let _ = remove_file(&state.libpython_path);
|
||||||
|
|
||||||
println!("{}\n", state.tr.launcher_updating_anki());
|
println!("{}\n", state.tr.launcher_updating_anki());
|
||||||
|
|
||||||
let python_version_trimmed = if state.user_python_version_path.exists() {
|
let python_version_trimmed = if state.user_python_version_path.exists() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue