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
bbb13c08
Commit
bbb13c08
authored
May 24, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove fetch module dependency in action/action.py
parent
c6b03c2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
action.py
hdlmake/action/action.py
+1
-2
content.py
hdlmake/module/content.py
+5
-2
No files found.
hdlmake/action/action.py
View file @
bbb13c08
...
...
@@ -32,7 +32,6 @@ from hdlmake.tools import load_syn_tool, load_sim_tool
from
hdlmake.util
import
shell
from
hdlmake.util.termcolor
import
colored
from
hdlmake
import
new_dep_solver
as
dep_solver
from
hdlmake
import
fetch
as
fetch_mod
from
hdlmake.srcfile
import
SourceFileSet
...
...
@@ -73,7 +72,7 @@ class Action(list):
set_logging_level
(
options
)
self
.
new_module
(
parent
=
None
,
url
=
os
.
getcwd
(),
source
=
fetch_mod
.
LOCAL
,
source
=
None
,
fetchto
=
"."
)
self
.
config
=
self
.
_get_config_dict
()
action
=
self
.
config
.
get
(
"action"
)
...
...
hdlmake/module/content.py
View file @
bbb13c08
...
...
@@ -16,14 +16,17 @@ class ModuleArgs(object):
def
__init__
(
self
):
self
.
parent
=
None
self
.
url
=
None
self
.
source
=
None
self
.
source
=
fetch
.
LOCAL
self
.
fetchto
=
None
def
set_args
(
self
,
parent
,
url
,
source
,
fetchto
):
"""Set the module arguments"""
self
.
parent
=
parent
self
.
url
=
url
self
.
source
=
source
if
source
==
None
:
self
.
source
=
fetch
.
LOCAL
else
:
self
.
source
=
source
self
.
fetchto
=
fetchto
def
get_args
(
self
):
...
...
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