def load_facts(self, facts):
facts = facts.encode()<EOL>if os.path.exists(facts):<EOL><INDENT>ret = lib.EnvLoadFacts(self._env, facts)<EOL>if ret == -<NUM_LIT:1>:<EOL><INDENT>raise CLIPSError(self._env)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>ret = lib.EnvLoadFactsFromString(self._env, facts, -<NUM_LIT:1>)<EOL>if ret == -<NUM_LIT:1>:<EOL><INDENT>raise CLIPSError(self._env)<EOL><DEDENT><DEDENT>return ret<EOL>
Load a set of facts into the CLIPS data base.

        The C equivalent of the CLIPS load-facts command.

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