We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02aac59 commit 6dcbb75Copy full SHA for 6dcbb75
1 file changed
lib/settings.py
@@ -6,6 +6,7 @@
6
import platform
7
import getpass
8
import tempfile
9
+import distutils.spawn
10
# import subprocess
11
12
import psutil
@@ -179,7 +180,7 @@ def check_for_msf():
179
180
"""
181
check the ENV PATH for msfconsole
182
- return os.getenv("msfconsole", False)
183
+ return os.getenv("msfconsole", False) or distutils.spawn.find_executable("msfconsole")
184
185
def logo():
186
0 commit comments