mirror of
https://github.com/86Box/bios-tools.git
synced 2026-02-22 01:25:34 -07:00
Fix bios_extract path
This commit is contained in:
@@ -128,7 +128,7 @@ def extract(dir_path, _, options):
|
||||
return 2
|
||||
|
||||
# Check if bios_extract is there.
|
||||
if not os.path.exists(os.path.abspath(os.path.join('bios_extract', 'src', 'bios_extract'))):
|
||||
if not os.path.exists(os.path.abspath(os.path.join('bios_extract', 'bios_extract'))):
|
||||
print('bios_extract binary not found, did you compile it?', file=sys.stderr)
|
||||
return 3
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ class BIOSExtractor(Extractor):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
# Path to the bios_extract utility.
|
||||
self._bios_extract_path = os.path.abspath(os.path.join('bios_extract', 'src', 'bios_extract'))
|
||||
self._bios_extract_path = os.path.abspath(os.path.join('bios_extract', 'bios_extract'))
|
||||
if not os.path.exists(self._bios_extract_path):
|
||||
self._bios_extract_path = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user