summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-10-23 03:09:50 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-10-28 22:19:37 (GMT)
commitc14f15b447b9cac503811f63e79a02dd1f043ac2 (patch)
treebea931a564fc6b7f3e95061c99eedafd87dc526b /tools
parentcc044036983744758009a2c0b83b2a17f9ecfa8f (diff)
downloadmxe-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-xtools/skeleton.py2
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,