Skip to content

Commit 7973241

Browse files
author
kuba--
committed
handle all imports
1 parent b52e615 commit 7973241

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

import.pl

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313

1414
% import_path extracts 'Name' tokens for each import.
1515
% It returns a Path as list of names.
16-
import_path(Path) :- !, import(Import), extract_name(Import, Path).
16+
import_path(Path) :- import(Import), extract_name(Import, Path).
17+
import_path(Path) :- runtime_import(Import), extract_name(Import, Path).
18+
import_path(Path) :- runtime_reimport(Import), extract_name(Import, Path).
19+
import_path(Path) :- inline_import(Import), extract_name(Import, Path).

0 commit comments

Comments
 (0)