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
9163130b
Commit
9163130b
authored
Aug 17, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the way we initialize the pool's environment
parent
07f1ce6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
__main__.py
hdlmake/__main__.py
+2
-1
action.py
hdlmake/action/action.py
+0
-8
No files found.
hdlmake/__main__.py
View file @
9163130b
...
...
@@ -32,6 +32,7 @@ import sys
from
.util.termcolor
import
colored
from
.manifest_parser
import
ManifestParser
from
.module_pool
import
ModulePool
from
.env
import
Env
from
.
import
fetch
as
fetch_mod
from
._version
import
__version__
...
...
@@ -72,7 +73,7 @@ def main():
modules_pool
=
ModulePool
()
# Set the module_pool environment by providing the options: this is a must!
modules_pool
.
set_environment
(
options
)
modules_pool
.
env
=
Env
(
options
)
# Now, we add the first module, the one from which we are launching
# the program:
...
...
hdlmake/action/action.py
View file @
9163130b
...
...
@@ -30,9 +30,6 @@ from subprocess import PIPE, Popen
import
sys
from
hdlmake.util
import
path
as
path_mod
from
hdlmake.env
import
Env
from
hdlmake
import
new_dep_solver
as
dep_solver
...
...
@@ -188,11 +185,6 @@ class Action(list):
finally
:
os
.
chdir
(
cwd
)
def
set_environment
(
self
,
options
):
"""Initialize the module pool environment from the provided options"""
env
=
Env
(
options
)
self
.
env
=
env
def
__str__
(
self
):
"""Cast the module list as a list of strings"""
return
str
([
str
(
m
)
for
m
in
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