clipspy-1.0.0/clips/facts.py
def load_facts(self, facts: str):
        """Load a set of facts into the CLIPS data base.

        Equivalent to the CLIPS (load-facts) function.

        Facts can be loaded from a string or from a text file.

        """
        facts = facts.encode()

        if os.path.exists(facts):
            if not lib.LoadFacts(self._env, facts):
                raise CLIPSError(self._env)
        else:
            if not lib.LoadFactsFromString(self._env, facts, len(facts)):
                raise CLIPSError(self._env)
Load a set of facts into the CLIPS data base.

        Equivalent to the CLIPS (load-facts) function.

        Facts can be loaded from a string or from a text file.

        
Load a set of facts into the CLIPS data base.
Equivalent to the CLIPS (load-facts) function.

Facts can be loaded from a string or from a text file.
Load a set of facts into the CLIPS data base . Equivalent to the CLIPS ( load - facts ) function . Facts can be loaded from a string or from a text file .
def load_facts(self, facts: str):
        facts = facts.encode()
        if os.path.exists(facts):
            if not lib.LoadFacts(self._env, facts):
                raise CLIPSError(self._env)
        else:
            if not lib.LoadFactsFromString(self._env, facts, len(facts)):
                raise CLIPSError(self._env)
def load_facts ( self , facts : str ) : facts = facts . encode ( ) if os . path . exists ( facts ) : if not lib . LoadFacts ( self . _env , facts ) : raise CLIPSError ( self . _env ) else : if not lib . LoadFactsFromString ( self . _env , facts , len ( facts ) ) : raise CLIPSError ( self . _env )
Load a set of facts into the CLIPS data base.
Load a set of facts into the CLIPS data base .
"""Load a set of facts into the CLIPS data base.

        Equivalent to the CLIPS (load-facts) function.

        Facts can be loaded from a string or from a text file.

        """
self
facts
str