File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ))
Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments