From c14f15b447b9cac503811f63e79a02dd1f043ac2 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 23 Oct 2016 06:09:50 +0300 Subject: skeleton.py: use shutil.move instead of os.rename Function os.rename fails if files are in different filesystems, e.g. if /tmp is mounted as tmpfs. --- tools/skeleton.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/skeleton.py b/tools/skeleton.py index 28a60a9..1e630bf 100755 --- a/tools/skeleton.py +++ b/tools/skeleton.py @@ -171,7 +171,7 @@ def update_index_html(name, description, website): (_, tmp_index_html) = tempfile.mkstemp() with open(tmp_index_html, 'wt') as f: f.write(index_html) - os.rename(tmp_index_html, 'docs/index.html') + shutil.move(tmp_index_html, 'docs/index.html') def make_skeleton( name, -- cgit v0.12