Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
0d3e8ccf
Commit
0d3e8ccf
authored
May 01, 2019
by
Nicolas Chevillot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed error/warning on absolute paths
parent
c4b5fced
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
12 deletions
+0
-12
content.py
hdlmake/module/content.py
+0
-4
core.py
hdlmake/module/core.py
+0
-5
module.py
hdlmake/module/module.py
+0
-3
No files found.
hdlmake/module/content.py
View file @
0d3e8ccf
...
...
@@ -99,10 +99,6 @@ class ModuleContent(ModuleCore):
self
.
manifest_dict
[
"modules"
][
"local"
])
local_mods
=
[]
for
path
in
local_paths
:
if
path_mod
.
is_abs_path
(
path
):
logging
.
error
(
"Found an absolute path ("
+
path
+
") in a manifest("
+
self
.
path
+
")"
)
quit
(
1
)
path
=
path_mod
.
rel2abs
(
path
,
self
.
path
)
local_mods
.
append
(
self
.
pool
.
new_module
(
parent
=
self
,
url
=
path
,
...
...
hdlmake/module/core.py
View file @
0d3e8ccf
...
...
@@ -85,11 +85,6 @@ class ModuleConfig(object):
def
_check_filepath
(
self
,
filepath
):
"""Check the provided filepath against several conditions"""
if
filepath
:
if
path_mod
.
is_abs_path
(
filepath
):
logging
.
warning
(
"Specified path seems to be an absolute path: "
+
filepath
+
"
\n
Omitting."
)
return
False
filepath
=
os
.
path
.
join
(
self
.
path
,
filepath
)
if
not
os
.
path
.
exists
(
filepath
):
logging
.
error
(
...
...
hdlmake/module/module.py
View file @
0d3e8ccf
...
...
@@ -107,9 +107,6 @@ class Module(ModuleContent):
include_dirs
.
extend
(
dir_list
)
# Analyze included dirs and report if any issue is found
for
dir_
in
include_dirs
:
if
path_mod
.
is_abs_path
(
dir_
):
logging
.
warning
(
"
%
s contains absolute path to an include "
"directory:
%
s"
,
self
.
path
,
dir_
)
if
not
os
.
path
.
exists
(
dir_
):
logging
.
warning
(
self
.
path
+
" has an unexisting include directory: "
+
...
...
Write
Preview
Markdown
is supported
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