blob: 80fc80baa9ecea507089ad87e85303f94cb7cf21 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/misc/update-glib-annotations.py
+++ b/misc/update-glib-annotations.py
@@ -57,7 +57,7 @@
extract_annotations(module_name, glib_src_dir, target)
if os.path.isfile(target_path):
os.unlink(target_path)
- os.rename(tmpname, target_path)
+ shutil.move(tmpname, target_path)
print("Updated '%s'" % (target_path, ))
|