File tree 2 files changed +9
-1
lines changed
analyzer/windows/lib/common
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,14 @@ Thumbs.db
24
24
# Ignore development files
25
25
docs /book /src /_build /
26
26
.idea /
27
+ .project
28
+ .pydevproject
27
29
28
30
# Ignore Django secret_key
29
31
web /web /secret_key.py
30
32
31
33
# Ignore yara rules
32
34
data /yara /index_ * .yar
35
+
36
+ # Ignore venv
37
+ venv
Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ def _enum_paths(self):
39
39
if basedir == "SystemRoot" :
40
40
yield os .path .join (os .getenv ("SystemRoot" ), * path [1 :])
41
41
elif basedir == "ProgramFiles" :
42
- yield os .path .join (os .getenv ("ProgramFiles" ), * path [1 :])
42
+ program_files = os .getenv ("ProgramFiles" )
43
+ yield os .path .join (program_files , * path [1 :])
44
+ if program_files .lower ().endswith (' (x86)' ):
45
+ yield os .path .join (program_files [:- 6 ], * path [1 :])
43
46
if os .getenv ("ProgramFiles(x86)" ):
44
47
yield os .path .join (os .getenv ("ProgramFiles(x86)" ),
45
48
* path [1 :])
You can’t perform that action at this time.
0 commit comments