Skip to content

Commit f0c66de

Browse files
committed
fix: path directory checking
1 parent c957211 commit f0c66de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def get_config_options(bv: BinaryView):
5050
def export_functions(bv: BinaryView):
5151
log = bv.create_logger("TypeLib_Exporter")
5252
config = get_config_options(bv)
53-
if not os.path.exists(config['export_path']):
54-
log.log_error("Please specify a path to export the type library")
53+
if not os.path.exists(os.path.dirname(config['export_path'])):
54+
log.log_error(f"Please specify a path to export the type library: {config['export_path']}")
5555
return
5656

5757
func_list = bv.get_symbols_of_type(SymbolType.FunctionSymbol)

0 commit comments

Comments
 (0)