Skip to content
Snippets Groups Projects
Commit fec314f1 authored by Johannes Boog's avatar Johannes Boog
Browse files

[bugfix] update path to included file for exported PRJ file

    paths to referenced files in the PRJ file have to be relative
    to the PRJ file
parent ca412a4c
No related branches found
No related tags found
1 merge request!31[docs] examples polished
...@@ -36,6 +36,11 @@ export_prj <- function(ogs6_obj) { ...@@ -36,6 +36,11 @@ export_prj <- function(ogs6_obj) {
# Include file reference # Include file reference
if(names(ogs6_obj$processes)[[1]] == "include"){ if(names(ogs6_obj$processes)[[1]] == "include"){
# update path to referenced file as reference has to be relative to
# the *.prj file location, just remove sim_path
new_ref_path <- gsub(ogs6_obj$sim_path, "",
ogs6_obj$processes[[1]][["file"]])
ogs6_obj$processes <- new_ref_path
processes_node <- to_node(ogs6_obj$processes, processes_node <- to_node(ogs6_obj$processes,
attribute_names = "include") attribute_names = "include")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment