Skip to content

Commit

Permalink
Config path via args
Browse files Browse the repository at this point in the history
  • Loading branch information
cdo-defcon committed Apr 4, 2018
1 parent 696f6ea commit 051c124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atomshields/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def installPlugin(origin, destination):
def installChecker(path):
AtomShieldsScanner.installPlugin(path, AtomShieldsScanner.CHECKERS_DIR)
instance = AtomShieldsScanner._getClassInstance(path)
config = AtomShieldsScanner._loadConfig()
config = AtomShieldsScanner._loadConfig(AtomShieldsScanner.CONFIG_PATH)
AtomShieldsScanner._addConfig(instance = instance, config = config, parent_section = 'checkers')


Expand Down Expand Up @@ -351,7 +351,7 @@ def getConfig(self, section = None):
return data

@staticmethod
def _loadConfig(path = AtomShieldsScanner.CONFIG_PATH):
def _loadConfig(path):
if path is not None and os.path.isfile(path):
handler = ConfigParser()
handler.read(path)
Expand Down

0 comments on commit 051c124

Please sign in to comment.