From 5d9fe034ea58c1684d5e93e86351a6ba0a7f3a5a Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 13 Nov 2024 08:55:04 +0100 Subject: [PATCH] tools: fix assetmgr on python <= 3.8 --- tools/assetmgr/assetmgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/assetmgr/assetmgr.py b/tools/assetmgr/assetmgr.py index 81ecf4230..e518e10bc 100644 --- a/tools/assetmgr/assetmgr.py +++ b/tools/assetmgr/assetmgr.py @@ -160,7 +160,7 @@ def writefile(filename, contents): # check if it's in args for arg in sys.argv: if arg.startswith('--romid='): - os.environ['ROMID'] = arg.removeprefix('--romid=') + os.environ['ROMID'] = arg[len('--romid='):] break else: # default to ntsc-final