mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-28 22:57:19 -05:00
fix: run verify and generate_pack from any dir
Started outside the repository root, both ended on a FileNotFoundError traceback: the database and the data registry name files from the root. They now move to the root after reading the paths the caller typed, which stay relative to where they were typed.
This commit is contained in:
1 parent
0457bd8f40
commit
738577b5a4
3 files changed
+62
No files matched your search
@@ -3160,6 +3160,12 @@ def _main(held: contextlib.ExitStack) -> None:
|
||||
help="Extract and verify pack integrity (path + hash)",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
from verify import work_from_repo_root
|
||||
|
||||
work_from_repo_root(
|
||||
args, parser,
|
||||
["db", "platforms_dir", "bios_dir", "output_dir", "emulators_dir", "from_md5_file"],
|
||||
)
|
||||
packresolve.set_offline(bool(args.offline))
|
||||
if args.platform:
|
||||
require_platform(args.platform, args.platforms_dir)
|
||||
|
||||
Reference in new issue
Block a user