We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e5fc123 + 077b8e1 commit b085733Copy full SHA for b085733
1 file changed
wifite/util/process.py
@@ -200,11 +200,7 @@ def exists(program):
200
if Configuration.initialized and program in Configuration.existing_commands:
201
return Configuration.existing_commands[program]
202
203
- p2 = Process(['which', program])
204
- stdout = p2.stdout().strip()
205
- stderr = p2.stderr().strip()
206
-
207
- exist = not stdout == stderr == ''
+ exist = shutil.which(program) is not None
208
if Configuration.initialized:
209
Configuration.existing_commands.update({program: exist})
210
return exist
0 commit comments