Commits

Carl Friedrich Bolz  committed a8e87b2 Merge

merge

  • Participants
  • Parent commits c1ccff7, 9b00275
  • Branches type-tag-terms

Comments (0)

Files changed (4)

File prolog/builtin/modules.py

 
 @expose_builtin("add_library_dir", unwrap_spec=["atom"])
 def impl_add_library_dir(engine, heap, path):
-    from os.path import isdir, abspath
+    from os.path import isdir
     assert path is not None
     if not isdir(path):
         error.throw_existence_error("source_sink", Callable.build(path))
-    abspath = abspath(path)
     libs = engine.modulewrapper.libs
     for lib in libs:
-        if lib == abspath:  
+        if lib == path:  
             return
-    engine.modulewrapper.libs.append(abspath)
+    engine.modulewrapper.libs.append(path)
 
 @continuation.make_failure_continuation
 def continue_librarydir(Choice, engine, scont, fcont, heap, pathvar, keycount):

File prolog/interpreter/parsing.py

File contents unchanged.

File prolog/interpreter/signature.py

File contents unchanged.

File prolog/interpreter/test/test_module.py

 def test_library_dir_single_query():
     e = Engine()
     tempdir = "__temp__"
-    from os.path import abspath
     create_dir(tempdir)
     try:
         assert_true("add_library_dir('%s')." % tempdir, e)
-        assert_true("library_directory('%s')." % abspath(tempdir), e)
+        assert_true("library_directory('%s')." % tempdir, e)
     finally:
         delete_dir(tempdir)