Commit b9105c53f0a97c0067d28877a768245450304e13
1 parent
b55c75c6
Exists in
master
Corrections in double visu GUI.
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
gui/visu_double/visu_double.py
... | ... | @@ -69,7 +69,14 @@ if __name__ == "__main__": |
69 | 69 | |
70 | 70 | def ima2_load(): |
71 | 71 | global widgets |
72 | - ima2.load() | |
72 | + path_cur = config["visu2"]["fits_path"] | |
73 | + ima2.path(path_cur) | |
74 | + fullfile = ima2.load() | |
75 | + if fullfile != "": | |
76 | + path_new = os.path.dirname(fullfile) | |
77 | + if path_cur != path_new and path_new != "": | |
78 | + config["visu2"]["fits_path"] = path_new | |
79 | + save_config() | |
73 | 80 | visu2.autocuts() |
74 | 81 | visu2.disp() |
75 | 82 | widgets["button_saveima_2"].configure(state= tk.NORMAL) | ... | ... |