Revert "OCD fix for root install path having extra directory slash"
This reverts commit e4bf2d736a
.
reverting previous commit
mdns
parent
ec13f26056
commit
33c4f0bc6b
|
@ -42,7 +42,7 @@ class Listeners:
|
|||
Load listeners from the install + "/lib/listeners/*" path
|
||||
"""
|
||||
|
||||
rootPath = "%slib/listeners/" % (self.mainMenu.installPath)
|
||||
rootPath = "%s/lib/listeners/" % (self.mainMenu.installPath)
|
||||
pattern = '*.py'
|
||||
print helpers.color("[*] Loading listeners from: %s" % (rootPath))
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ class Modules:
|
|||
"""
|
||||
|
||||
if rootPath == '':
|
||||
rootPath = "%slib/modules" % (self.mainMenu.installPath)
|
||||
rootPath = "%s/lib/modules/" % (self.mainMenu.installPath)
|
||||
|
||||
pattern = '*.py'
|
||||
print helpers.color("[*] Loading modules from: %s" % (rootPath))
|
||||
|
@ -54,7 +54,7 @@ class Modules:
|
|||
# extract just the module name from the full path
|
||||
moduleName = filePath.split(rootPath)[-1][0:-3]
|
||||
|
||||
if rootPath != "%slib/modules/" % (self.mainMenu.installPath):
|
||||
if rootPath != "%s/lib/modules/" % (self.mainMenu.installPath):
|
||||
moduleName = "external/%s" %(moduleName)
|
||||
|
||||
# instantiate the module and save it to the internal cache
|
||||
|
|
|
@ -45,7 +45,7 @@ class Stagers:
|
|||
Load stagers from the install + "/lib/stagers/*" path
|
||||
"""
|
||||
|
||||
rootPath = "%slib/stagers/" % (self.mainMenu.installPath)
|
||||
rootPath = "%s/lib/stagers/" % (self.mainMenu.installPath)
|
||||
pattern = '*.py'
|
||||
|
||||
print helpers.color("[*] Loading stagers from: %s" % (rootPath))
|
||||
|
|
Loading…
Reference in New Issue