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
680fbb00
Commit
680fbb00
authored
Mar 19, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor fetchto calculation in module content
parent
8599c897
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
content.py
hdlmake/module/content.py
+6
-2
No files found.
hdlmake/module/content.py
View file @
680fbb00
...
...
@@ -49,16 +49,20 @@ class ModuleContent(ModuleCore):
paths
=
self
.
_make_list_of_paths
(
self
.
manifest_dict
[
"files"
])
self
.
files
=
self
.
_create_file_list_from_paths
(
paths
=
paths
)
def
_
process_manifest_modules
(
self
):
"""
Process the submodules required by the HDLMake module
"""
def
_
get_fetchto
(
self
):
"""
Calculate the fetchto folder
"""
if
(
"fetchto"
in
self
.
manifest_dict
and
self
.
manifest_dict
[
"fetchto"
]
is
not
None
):
fetchto
=
path_mod
.
rel2abs
(
self
.
manifest_dict
[
"fetchto"
],
self
.
path
)
else
:
fetchto
=
self
.
fetchto
()
return
fetchto
def
_process_manifest_modules
(
self
):
"""Process the submodules required by the HDLMake module"""
# Process required modules
fetchto
=
self
.
_get_fetchto
()
if
"modules"
in
self
.
manifest_dict
:
if
"local"
in
self
.
manifest_dict
[
"modules"
]:
...
...
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