Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b463205

Browse files
committed
Minor fixes for MacOSX
1 parent 06cc2a6 commit b463205

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,13 @@ def __setMetasploit():
325325

326326
envPaths = os.environ["PATH"]
327327

328-
if "win" in PLATFORM:
328+
if "darwin" not in PLATFORM and "win" in PLATFORM:
329329
envPaths = envPaths.split(";")
330330
else:
331331
envPaths = envPaths.split(":")
332332

333333
for envPath in envPaths:
334+
envPath = envPath.replace(";", "")
334335
condition = os.path.exists(os.path.normpath(envPath))
335336
condition &= os.path.exists(os.path.normpath("%s/msfcli" % envPath))
336337
condition &= os.path.exists(os.path.normpath("%s/msfconsole" % envPath))

lib/core/readlineng.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
except ImportError:
5050
haveReadline = False
5151

52-
if 'win' in PLATFORM and haveReadline:
52+
if 'win' in PLATFORM and 'darwin' not in PLATFORM and haveReadline:
5353
try:
5454
_outputfile=_rl.GetOutputFile()
5555
except AttributeError:

0 commit comments

Comments
 (0)