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 typing
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import shutil
|
||||||
|
|
||||||
from random import randrange
|
from random import randrange
|
||||||
|
|
||||||
|
@ -1418,7 +1419,7 @@ async def main():
|
||||||
adjustedromfile, adjusted = Utils.get_adjuster_settings(romfile)
|
adjustedromfile, adjusted = Utils.get_adjuster_settings(romfile)
|
||||||
if adjusted:
|
if adjusted:
|
||||||
try:
|
try:
|
||||||
os.replace(adjustedromfile, romfile)
|
shutil.move(adjustedromfile, romfile)
|
||||||
adjustedromfile = romfile
|
adjustedromfile = romfile
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.exception(e)
|
logging.exception(e)
|
||||||
|
|
Loading…
Reference in New Issue