suport /u/vitor/linux/bin:/u/vitor/bin:/usr/bin:/bin:/sbin:/usr/sbin:/ua/vitor/linux/bin:/usr/X11R6/bin:.:/usr/openwin/bin:/usr/local/bin:/ua/vitor/bin:/usr/bin:/bin:/ua/vitor/sw/bin:/opt/condor/bin:/s/bin in paths
This commit is contained in:
parent
ddb14f97aa
commit
6e7742ce8b
@ -270,6 +270,14 @@ file_search_path(yap, Home) :-
|
||||
file_search_path(system, Dir) :-
|
||||
prolog_flag(host_type, Dir).
|
||||
file_search_path(foreign, yap('lib/Yap')).
|
||||
file_search_path(path, C) :-
|
||||
( getenv('PATH', A),
|
||||
( current_prolog_flag(windows, true)
|
||||
-> atomic_list_concat(B, ;, A)
|
||||
; atomic_list_concat(B, :, A)
|
||||
),
|
||||
lists:member(C, B)
|
||||
).
|
||||
|
||||
:- yap_flag(unknown,error).
|
||||
|
||||
|
Reference in New Issue
Block a user