def run(self):
        """
        Runs the scanner
        :return: self
        """

        # Normalize path
        self.path = os.path.expanduser(self.path)

        # Start scanning
        if os.path.isdir(self.path):
            self.search_script_directory(self.path)
            return self
        else:
            raise ScannerException("Unknown directory: %s" % self.path)
def run ( self ) : self . path = os . path . expanduser ( self . path ) if os . path . isdir ( self . path ) : self . search_script_directory ( self . path ) return self else : raise ScannerException ( "Unknown directory: %s" % self . path )
Runs the scanner
        :return: self