mirror of https://git.wownero.com/dsc/mxe.git
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:
parent
cc04403698
commit
c14f15b447
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue