Use shutil.move instead of os.replace, for compatibility
This commit is contained in:
parent
2833d99eda
commit
7ce9278123
|
@ -13,6 +13,7 @@ import sys
|
|||
import typing
|
||||
import os
|
||||
import subprocess
|
||||
import shutil
|
||||
|
||||
from random import randrange
|
||||
|
||||
|
@ -1418,7 +1419,7 @@ async def main():
|
|||
adjustedromfile, adjusted = Utils.get_adjuster_settings(romfile)
|
||||
if adjusted:
|
||||
try:
|
||||
os.replace(adjustedromfile, romfile)
|
||||
shutil.move(adjustedromfile, romfile)
|
||||
adjustedromfile = romfile
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
|
|
Loading…
Reference in New Issue