Refactor ModuleArgs and move back shell to util

parent 4ca4b16a
......@@ -29,7 +29,7 @@ import logging
import sys
from hdlmake.tools import load_syn_tool, load_sim_tool
from hdlmake import shell
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
......
......@@ -23,7 +23,7 @@
from __future__ import absolute_import
import os
from hdlmake import shell
from hdlmake.util import shell
class Fetcher(object):
......
......@@ -24,7 +24,7 @@
from __future__ import absolute_import
import os
from hdlmake.util import path as path_utils
from hdlmake import shell
from hdlmake.util import shell
import logging
from .constants import GIT
from .fetcher import Fetcher
......
......@@ -9,6 +9,28 @@ from .core import ModuleCore
import six
class ModuleArgs(object):
"""This class is just a container for the main Module args"""
def __init__(self):
self.parent = None
self.url = None
self.source = None
self.fetchto = None
def set_args(self, parent, url, source, fetchto):
"""Set the module arguments"""
self.parent = parent
self.url = url
self.source = source
self.fetchto = fetchto
def get_args(self):
"""Get the module arguments"""
return self.parent, self.url, self.source, self.fetchto
class ModuleContent(ModuleCore):
"""Class providing the HDLMake module content"""
......
......@@ -33,34 +33,12 @@ import os
import logging
from hdlmake.util import path as path_mod
from hdlmake import shell
from hdlmake.util import shell
from hdlmake.manifest_parser import ManifestParser
from .content import ModuleContent
from .content import ModuleContent, ModuleArgs
import six
class ModuleArgs(object):
"""This class is just a container for the main Module args"""
def __init__(self):
self.parent = None
self.url = None
self.source = None
self.fetchto = None
def set_args(self, parent, url, source, fetchto):
"""Set the module arguments"""
self.parent = parent
self.url = url
self.source = source
self.fetchto = fetchto
def get_args(self):
"""Get the module arguments"""
return self.parent, self.url, self.source, self.fetchto
class Module(ModuleContent):
"""
......
......@@ -29,7 +29,7 @@ import logging
from .make_syn import ToolSyn
from hdlmake import shell
from hdlmake.util import shell
from hdlmake.srcfile import (VHDLFile, VerilogFile, SVFile,
UCFFile, CDCFile, NGCFile)
......
......@@ -31,7 +31,7 @@ import os.path
import logging
from .make_sim import ToolSim
from hdlmake import shell
from hdlmake.util import shell
from hdlmake.srcfile import VerilogFile, VHDLFile
......
......@@ -7,7 +7,7 @@ import string
import logging
from .makefile import ToolMakefile
from hdlmake import shell
from hdlmake.util import shell
from hdlmake.srcfile import VerilogFile, VHDLFile, SVFile
......
......@@ -6,7 +6,7 @@ import logging
import string
from .makefile import ToolMakefile
from hdlmake import shell
from hdlmake.util import shell
def _check_synthesis_manifest(manifest_dict):
......
......@@ -28,7 +28,7 @@ import os
import logging
import six
from hdlmake import shell
from hdlmake.util import shell
class ToolMakefile(object):
......
......@@ -30,7 +30,7 @@ import logging
from .make_syn import ToolSyn
from hdlmake.util import path as path_mod
from hdlmake import shell
from hdlmake.util import shell
from hdlmake.srcfile import (VHDLFile, VerilogFile, SVFile, DPFFile,
SignalTapFile, SDCFile, QIPFile, QSYSFile,
QSFFile, BSFFile, BDFFile, TDFFile, GDFFile)
......
......@@ -28,7 +28,7 @@ import os
import string
from .make_sim import ToolSim
from hdlmake import shell
from hdlmake.util import shell
from hdlmake.srcfile import VerilogFile, VHDLFile, SVFile
import six
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment