small
This commit is contained in:
parent
a601d3ebb3
commit
d91b06bb6c
@ -137,7 +137,7 @@ def answer(q):
|
||||
return False
|
||||
|
||||
def query_prolog(engine, s):
|
||||
import pdb; pdb.set_trace()
|
||||
# import pdb; pdb.set_trace()
|
||||
#
|
||||
# construct a query from a one-line string
|
||||
# q is opaque to Python
|
||||
@ -209,15 +209,7 @@ def live(**kwargs):
|
||||
#
|
||||
|
||||
def boot_yap(**kwargs):
|
||||
args = EngineArgs(**kwarg)
|
||||
yap_lib_path = os.path.dirname(__file__)
|
||||
args.setYapShareDir(os.path.join(yap_lib_path,"prolog"))
|
||||
args.setYapLibDir(yap_lib_path)
|
||||
args.setSavedState(os.path.join(yap_lib_path,"startup.yss"))
|
||||
engine = YAPEngine(args)
|
||||
engine.goal( set_prolog_flag('verbose', 'silent' ) )
|
||||
engine.goal( use_module(library('yapi') ) )
|
||||
return engine
|
||||
return Engine(**kwargs)
|
||||
|
||||
if __name__ == "__main__":
|
||||
engine = boot_yap()
|
||||
|
Reference in New Issue
Block a user