File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 44
55import C_TO_LOGIC
66
7+ from utilities import REPO_ABS_DIR
8+
79# TODO: Temporarily import from submodule, remove this hack when we create a proper pipelinec setup.py
8- sys .path .append ('.. /submodule/pycparser /pycparser' )
10+ sys .path .append (REPO_ABS_DIR () + ' /submodule/pycparser' )
911from pycparser import c_ast , c_generator
1012
1113# FSM funcs cant be main functions
Original file line number Diff line number Diff line change 2525 raise Exception ("'cpp' C preprocessor is not installed!" )
2626
2727# TODO: Temporarily import from submodule, remove this hack when we create a proper pipelinec setup.py
28- sys .path .append ('.. /submodule/pycparser /pycparser' )
28+ sys .path .append (REPO_ABS_DIR () + ' /submodule/pycparser' )
2929from pycparser import c_ast , c_parser
3030
3131# Global default constants for inferring different VHDL implementations of operators
Original file line number Diff line number Diff line change 66import SW_LIB
77import VHDL
88
9+ from utilities import REPO_ABS_DIR
10+
911# TODO: Temporarily import from submodule, remove this hack when we create a proper pipelinec setup.py
10- sys .path .append ('.. /submodule/pycparser /pycparser' )
12+ sys .path .append (REPO_ABS_DIR () + ' /submodule/pycparser' )
1113from pycparser import c_ast
1214
1315
Original file line number Diff line number Diff line change 99import SYN
1010import VHDL
1111
12+ from utilities import REPO_ABS_DIR
13+
1214# TODO: Temporarily import from submodule, remove this hack when we create a proper pipelinec setup.py
13- sys .path .append ('.. /submodule/pycparser /pycparser' )
15+ sys .path .append (REPO_ABS_DIR () + ' /submodule/pycparser' )
1416from pycparser import c_ast
1517
1618# Hey lets bootstrap for fun
Original file line number Diff line number Diff line change 1515import VERILATOR
1616import VIVADO
1717
18+ from utilities import REPO_ABS_DIR
19+
1820# TODO: Temporarily import from submodule, remove this hack when we create a proper pipelinec setup.py
19- sys .path .append ('.. /submodule/pycparser /pycparser' )
21+ sys .path .append (REPO_ABS_DIR () + ' /submodule/pycparser' )
2022from pycparser import c_ast
2123
2224VHDL_FILE_EXT = ".vhd"
You can’t perform that action at this time.
0 commit comments