Use shutil.move instead of os.replace, for compatibility
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Fabian Dill
					Fabian Dill