diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-10-23 03:09:50 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2016-10-28 22:19:37 (GMT) |
commit | c14f15b447b9cac503811f63e79a02dd1f043ac2 (patch) | |
tree | bea931a564fc6b7f3e95061c99eedafd87dc526b /tools | |
parent | cc044036983744758009a2c0b83b2a17f9ecfa8f (diff) | |
download | mxe-c14f15b447b9cac503811f63e79a02dd1f043ac2.zip mxe-c14f15b447b9cac503811f63e79a02dd1f043ac2.tar.gz mxe-c14f15b447b9cac503811f63e79a02dd1f043ac2.tar.bz2 |
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.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/skeleton.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |