Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SameFileError exception on axis GUI
Fixes the following exception: reload file Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib64/python3.12/tkinter/__init__.py", line 1948, in __call__ return self.func(*args) ^^^^^^^^^^^^^^^^ File "/usr/bin/axis", line 2356, in task_run reload_file() File "/usr/bin/axis", line 1911, in reload_file shutil.copyfile(loaded_file, tempfile) File "/usr/lib64/python3.12/shutil.py", line 240, in copyfile raise SameFileError("{!r} and {!r} are the same file".format(src, dst)) shutil.SameFileError: '/tmp/tmp0ym0r2bm/axis.ngc' and '/tmp/tmp0ym0r2bm/axis.ngc' are the same file This is 100% reproducible when you try stop then play again the same file twice.
- Loading branch information