summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index b7eac167..7b5decd8 100644
--- a/main.cxx
+++ b/main.cxx
@@ -662,6 +662,16 @@ main (int argc, char * const argv [])
usage(s, 1);
}
+ // translate path of runtime to absolute path
+ if (s.runtime_path[0] != '/')
+ {
+ char cwd[PATH_MAX];
+ if (getcwd(cwd, sizeof(cwd)))
+ {
+ s.runtime_path = string(cwd) + "/" + s.runtime_path;
+ }
+ }
+
int rc = 0;
// override PATH and LC_ALL