Skip to content

Commit 9bb68fd

Browse files
committed
correct base_dir
1 parent 9e32eaa commit 9bb68fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

upload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ async def do_the_thing(base_dir):
593593
if path.endswith('"'):
594594
path = path[:-1]
595595

596-
is_binary = await get_mkbrr_path(meta)
596+
is_binary = await get_mkbrr_path(meta, base_dir)
597597
if not meta['mkbrr']:
598598
meta['mkbrr'] = int(config['DEFAULT'].get('mkbrr', False))
599599
if meta['mkbrr'] and not is_binary:
@@ -761,9 +761,9 @@ async def do_the_thing(base_dir):
761761
reset_terminal()
762762

763763

764-
async def get_mkbrr_path(meta):
764+
async def get_mkbrr_path(meta, base_dir=None):
765765
try:
766-
mkbrr_path = await ensure_mkbrr_binary(meta['base_dir'], debug=meta['debug'], version="v1.8.1")
766+
mkbrr_path = await ensure_mkbrr_binary(base_dir, debug=meta['debug'], version="v1.8.1")
767767
return mkbrr_path
768768
except Exception as e:
769769
console.print(f"[red]Error setting up mkbrr binary: {e}[/red]")

0 commit comments

Comments
 (0)