This commit is contained in:
Vitor Santos Costa
2018-01-27 10:17:27 +00:00
parent 63e8e89dab
commit f3f524960c
23 changed files with 423 additions and 376 deletions

View File

@@ -11,12 +11,11 @@ from .yap import *
class Engine( YAPEngine ):
def __init__(self, args=None,**kwargs):
def __init__(self, args=None,self_contained=False,**kwargs):
# type: (object) -> object
self.contained = False
if not args:
args = EngineArgs(**kwargs)
if self.contained:
if self_contained:
yap_lib_path = os.path.dirname(__file__)
args.setYapShareDir(os.path.join(yap_lib_path, "prolog"))
args.setYapLibDir(yap_lib_path)