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.
This commit is contained in:
Boris Nagaev 2016-10-23 06:09:50 +03:00
parent cc04403698
commit c14f15b447
1 changed files with 1 additions and 1 deletions

View File

@ -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,