mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Use shutil.move instead of os.replace, for compatibility
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user