Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
6c11d775
Commit
6c11d775
authored
5 months ago
by
Bohdan Dudar
Committed by
Andre Sailer
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add explanation
parent
34474781
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDCore/src/XML/DocumentHandler.cpp
+4
-3
4 additions, 3 deletions
DDCore/src/XML/DocumentHandler.cpp
with
4 additions
and
3 deletions
DDCore/src/XML/DocumentHandler.cpp
+
4
−
3
View file @
6c11d775
...
@@ -40,9 +40,10 @@ namespace {
...
@@ -40,9 +40,10 @@ namespace {
}
}
int
s_minPrintLevel
=
dd4hep
::
INFO
;
int
s_minPrintLevel
=
dd4hep
::
INFO
;
std
::
string
_clean_fname
(
const
std
::
string
&
s
)
{
std
::
string
_clean_fname
(
const
std
::
string
&
filepath
)
{
std
::
string
const
&
temp
=
getEnviron
(
s
);
// This function seems to resolve environment variables inside the filepath string and return resolved string
std
::
string
temp2
=
undressed_file_name
(
temp
.
empty
()
?
s
:
temp
);
std
::
string
const
&
temp
=
getEnviron
(
filepath
);
std
::
string
temp2
=
undressed_file_name
(
temp
.
empty
()
?
filepath
:
temp
);
if
(
strncmp
(
temp2
.
c_str
(),
"file:"
,
5
)
==
0
)
return
temp2
.
substr
(
5
);
if
(
strncmp
(
temp2
.
c_str
(),
"file:"
,
5
)
==
0
)
return
temp2
.
substr
(
5
);
return
temp2
;
return
temp2
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment