Moved project load file to root dir.
authorYeGoblynQueenne@splinter <ep50@uni.brighton.ac.uk>
Tue, 30 Aug 2016 06:08:14 +0000 (09:08 +0300)
committerYeGoblynQueenne@splinter <ep50@uni.brighton.ac.uk>
Tue, 30 Aug 2016 06:08:14 +0000 (09:08 +0300)
load_tree_learning.pl [moved from tree_learning/load_tree_learning.pl with 81% similarity]

similarity index 81%
rename from tree_learning/load_tree_learning.pl
rename to load_tree_learning.pl
index a0bd19c..5683b18 100644 (file)
@@ -1,9 +1,9 @@
 :-prolog_load_context(directory, Dir)
-  ,asserta(user:file_search_path(tree_learning, Dir)).
-
-:- absolute_file_name(.., Dir)
   ,asserta(user:file_search_path(project_root, Dir)).
 
+:- absolute_file_name('./tree_learning/', Dir)
+  ,asserta(user:file_search_path(tree_learning, Dir)).
+
 user:file_search_path(lib, project_root(lib)).
 user:file_search_path(corpus, tree_learning(corpus)).
 user:file_search_path(language, tree_learning(language)).
@@ -12,14 +12,14 @@ user:file_search_path(bags, output(bags)).
 user:file_search_path(experiments, tree_learning(experiments)).
 
 
-:-use_module(language).
-:-use_module(load_configuration).
-:-use_module(configuration).
-:-use_module(examples_set).
-:-use_module(skeleton_transformation).
-:-use_module(grammar_printing).
-:-use_module(grammar_evaluation).
-:-use_module(query_interface).
+:-use_module(tree_learning(language)).
+:-use_module(tree_learning(load_configuration)).
+:-use_module(tree_learning(configuration)).
+:-use_module(tree_learning(examples_set)).
+:-use_module(tree_learning(skeleton_transformation)).
+:-use_module(tree_learning(grammar_printing)).
+:-use_module(tree_learning(grammar_evaluation)).
+:-use_module(tree_learning(query_interface)).
 
 % Raises warnings. Needs picking at.
 %:-assert(examples_set:exists).
@@ -30,7 +30,7 @@ user:file_search_path(experiments, tree_learning(experiments)).
 
 :-writeln('Finished loading project. Opening source files in IDE...').
 edit_source:-
-       edit(tree_learning(load_tree_learning))
+       edit(project_root(load_tree_learning))
        ,edit(tree_learning(query_interface))
 %      ,edit(lib(load_libs))
        ,edit(lib(project_utilities))