Commit 9d218290 authored by MARTINEZ Thierry 's avatar MARTINEZ Thierry

library paths

parent 26d61e06
......@@ -25,8 +25,16 @@ output_file(Name) :-
filename(Filename, ExpandedFilename) :-
expand_file_name(Filename, List),
member(ExpandedFilename, List).
(
atom_concat('library:', SubFilename, Filename)
->
library_path(LibraryPath),
Options = [relative_to(LibraryPath)]
;
Options = [],
SubFilename = Filename
),
absolute_file_name(SubFilename, ExpandedFilename, [expand(true) | Options]).
path_delimiter('/').
......
......@@ -14,8 +14,8 @@ test('new_model', [true(Reactions == [])]) :-
delete_item(Id1).
test('load', [true(Name == 'examples/mapk/mapk')]) :-
command(load(examples/mapk/mapk)),
test('load', [true(atom_concat(_, 'examples/mapk/mapk', Name))]) :-
command(load(library:examples/mapk/mapk)),
single_model(Id),
get_model_name(Id, Name),
delete_item(Id).
......
......@@ -5,7 +5,7 @@
test('mapk') :-
clear_model,
command(load(examples/mapk/mapk)),
command(load(library:examples/mapk/mapk)),
numerical_simulation.
......
......@@ -93,7 +93,7 @@ draw_reactions :-
\\begin{example}
'),
biocham_silent(clear_model),
biocham(load('../examples/mapk/mapk')),
biocham(load(library:examples/mapk/mapk)),
biocham(draw_reactions),
doc('
\\end{example}
......
......@@ -8,7 +8,7 @@ test(
'load_sbml',
[true(Reactions = [ 'B' <=> 'BL', 'BL' <=> 'BLL' | _ ])]
) :-
load('biomodels/BIOMD0000000001.xml'),
load('library:biomodels/BIOMD0000000001.xml'),
all_items([kind: reaction], Reactions).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment