Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Benedikt Hegner
Gaudi
Commits
44d4d19c
Commit
44d4d19c
authored
Sep 03, 2021
by
Marco Clemencic
Browse files
Fix scan_dict_deps.py to not use directories
See merge request
gaudi/Gaudi!1241
parents
4ac24295
81107b0b
Pipeline
#3012359
passed with stages
in 27 minutes and 27 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
cmake/scan_dict_deps.py
View file @
44d4d19c
...
...
@@ -12,7 +12,7 @@
from
__future__
import
print_function
import
re
import
io
from
os.path
import
join
,
exists
,
isabs
from
os.path
import
join
,
exists
,
isabs
,
isdir
INCLUDE_RE
=
re
.
compile
(
r
'^\s*#\s*include\s*["<]([^">]*)[">]'
)
...
...
@@ -56,7 +56,7 @@ def find_deps(filename, searchpath, deps=None):
find_file
(
m
.
group
(
1
),
searchpath
)
for
m
in
[
INCLUDE_RE
.
match
(
l
)
for
l
in
io
.
open
(
filename
,
encoding
=
"utf-8"
)]
if
m
]
if
f
and
f
not
in
deps
]
if
f
and
f
not
in
deps
and
not
isdir
(
f
)
]:
deps
.
add
(
included
)
find_deps
(
included
,
searchpath
,
deps
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment