Commits

Pierre Carbonnelle committed d6cc9c9

2 to 3

Comments (0)

Files changed (3)

pyDatalog/pyDatalog.lua

         end
     end
     pred.db[id] = nil
-    if not next(pred.db) and not pred.prim then -- TODO update index
+    if not next(pred.db) and not pred.prim then
         remove(pred)
     end
     return clause

pyDatalog/pyDatalog.py

 except:
     Engine = 'Python'
 #Engine = 'Python'
-print('Using %s engine for Datalog.' % Engine)
+print(('Using %s engine for Datalog.' % Engine))
 
-import pyDatalog.pyEngine
+from . import pyDatalog.pyEngine
 
 default_datalog_engine = None # will contain the default datalog engine
 
 setup(
     name = "pyDatalog",
     packages = ["pyDatalog"],
-    version = "0.3.1",
+    version = "0.3.2",
     description = "pyDatalog embeds a subset of prolog in python using SLG algorithm with memoization",
     author = "Pierre Carbonnelle",
     author_email = "pierre.carbonnelle@gmail.com",