Skip to content

Commit 3d3938b

Browse files
committed
Fix to exclude path
1 parent da28cfd commit 3d3938b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
pyinstaller==5.9.0
12
binaryornot
23
numpy
34
pandas

src/fosslight_binary/binary_analysis.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ def find_binaries(path_to_find_bin, output_dir, formats, dburl="", simple_mode=F
200200
writing_msg = ""
201201
results = []
202202
bin_list = []
203-
base_dir_name = os.path.basename(path_to_find_bin)
204203
scan_item = ScannerItem(PKG_NAME, "")
205-
abs_path_to_exclude = [os.path.abspath(os.path.join(base_dir_name, path)) for path in path_to_exclude if path.strip() != ""]
204+
abs_path_to_exclude = [os.path.abspath(path) for path in path_to_exclude if path.strip() != ""]
206205

207206
if not os.path.isdir(path_to_find_bin):
208207
error_occured(error_msg=f"(-p option) Can't find the directory: {path_to_find_bin}",

0 commit comments

Comments
 (0)