Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
olena
Commits
46bdb024
Commit
46bdb024
authored
May 23, 2012
by
Guillaume Lazzara
Committed by
Roland Levillain
Jun 30, 2014
Browse files
demo/viewer/runner.cc: Make xml2doc binary lookup more robust.
Signed-off-by:
Roland Levillain
<
roland@lrde.epita.fr
>
parent
8a887c76
Changes
2
Hide whitespace changes
Inline
Side-by-side
scribo/ChangeLog
View file @
46bdb024
2012-05-22 Guillaume Lazzara <z@lrde.epita.fr>
* demo/viewer/runner.cc: Make xml2doc binary lookup more robust.
2011-12-07 Guillaume Lazzara <z@lrde.epita.fr>
* demo/viewer/runner.cc: Make detection of scribo-xml2doc more
...
...
scribo/demo/viewer/runner.cc
View file @
46bdb024
// Copyright (C) 2010, 2011 EPITA Research and Development
Laboratory
// (LRDE)
// Copyright (C) 2010, 2011
, 2012
EPITA Research and Development
//
Laboratory
(LRDE)
//
// This file is part of Olena.
//
...
...
@@ -50,9 +50,15 @@ QString get_pathto(const QString& file,
// Installed in a specific path but moved elsewhere ?
QDir
dir
(
QCoreApplication
::
applicationDirPath
());
dir
.
cdUp
();
// move from prefix/bin to prefix/
f
.
setFileName
(
dir
.
currentPath
()
+
"/libexec/scribo"
+
file
);
if
(
f
.
exists
())
return
dir
.
currentPath
()
+
"/libexec/scribo"
;
const
char
*
path
[]
=
{
"lib"
,
"libexec"
,
0
};
for
(
int
i
=
0
;
path
[
i
];
++
i
)
{
f
.
setFileName
(
dir
.
currentPath
()
+
QString
(
"/%1/scribo"
).
arg
(
path
[
i
])
+
file
);
if
(
f
.
exists
())
return
dir
.
currentPath
()
+
QString
(
"/%1/scribo"
).
arg
(
path
[
i
]);
}
qDebug
()
<<
"FATAL ERROR: Can't locate file: "
+
file
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment