summaryrefslogtreecommitdiff
path: root/grc/core/generator/Generator.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-1/+0
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: Implement grcc --output switch for hierarchical blocksJaredD2021-09-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * grc: Implement --output functionality for grcc Reference gnradio Issue #2799. This commit adjusts some logic and code to enable the --output switch for grcc. Prior to this commit, grcc would only output to the GRC_HIER_PATH. The commit adjusts the various Generators in grc/core/generator to consistently use output_dir for the output directory. If it's None, then take from the platform.config.hier_block_lib_dir attribute which can be set via the GRC_HIER_PATH env var. The cpp_top_block generator was also modified to remote its __init__ function which appeared identical to its base TopBlockGenerator. I did not test c++ GRC output. * Make output directory if does not exist * Duplicate TopBlockGenerator __init__ without .py extension; base class object * Typo in os.makedirs kwarg * Added _warnings method from TopBlockGenerator Signed-off-by: Jared Dulmage <jared.dulmage@caliola.com>
* grc: fix pylint C0303: Trailing whitespaceClayton Smith2020-10-201-1/+1
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-1/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* grc: remove dead codeClayton Smith2020-05-281-8/+0
|
* Update license header to SPDX formatdevnulling2020-01-271-13/+2
|
* Fix C++ hier block generationHåkon Vågsether2018-12-181-1/+2
|
* Add C++ generationHåkon Vågsether2018-11-231-6/+20
|
* grc: added yaml/mako supportSebastian Koslowski2017-06-291-349/+5
| | | | Includes basic converter from XML/Cheetah to YAML/Mako based block format.
* Merge branch 'next' into python3Johnathan Corgan2017-04-181-0/+1
|\
| * Merge branch 'master' into nextJohnathan Corgan2017-04-181-0/+1
| |\
| | * grc: Add hide field in parameter blockKartik Patel2017-04-101-0/+1
| | |
* | | Merge branch 'gtk3' into python3Sebastian Koslowski2017-03-091-46/+50
|\ \ \ | |/ / |/| |
| * | Merge remote-tracking branch 'upstream/next' into gtk3Sebastian Koslowski2017-01-051-1/+1
| |\ \
| * \ \ Merge remote-tracking branch 'upstream/next' into gtk3Sebastian Koslowski2016-09-121-4/+0
| |\ \ \
| * \ \ \ Merge remote-tracking branch 'upstream/next' into gtk3Sebastian Koslowski2016-08-091-1/+2
| |\ \ \ \
| * | | | | grc: remove support for old msg queuesSebastian Koslowski2016-08-081-6/+3
| | | | | |
| * | | | | grc: gtk3: fix generating virtual/bypassed connectionsSebastian Koslowski2016-07-291-3/+3
| | | | | |
| * | | | | grc: refactor: replace get_enabled by propSebastian Koslowski2016-07-291-2/+2
| | | | | |
| * | | | | grc: refactor: remove get for port and param nameSebastian Koslowski2016-07-291-1/+1
| | | | | |
| * | | | | grc: refactor: fixup selection code and core connection changesSebastian Koslowski2016-07-131-1/+1
| | | | | |
| * | | | | grc: refactor: remote port domain getterSebastian Koslowski2016-07-131-1/+1
| | | | | |
| * | | | | grc-refactor: Block: make more public attribsSebastian Koslowski2016-07-131-3/+3
| | | | | |
| * | | | | grc-refactor: Block: remove key gettersSebastian Koslowski2016-07-131-2/+2
| | | | | |
| * | | | | Merge remote-tracking branch 'grcwg/next_grcwg' into gtk3Sebastian Koslowski2016-07-131-16/+19
| |\ \ \ \ \
| * | | | | | grc-refactor: rewrite tree-api in coreSebastian Koslowski2016-06-101-5/+4
| | | | | | |
| * | | | | | grc-refactor: ConnectionsSebastian Koslowski2016-06-091-10/+10
| | | | | | |
| * | | | | | grc-refactor: remove odictSebastian Koslowski2016-06-091-9/+17
| | | | | | |
| * | | | | | grc: py3k compat using python-modernizeSebastian Koslowski2016-06-091-13/+17
| | | | | | |
| * | | | | | grc-refactor: replace some unnecessary gettersSebastian Koslowski2016-06-011-10/+4
| | | | | | |
* | | | | | | Merge branch 'master' into nextSebastian Koslowski2017-01-251-3/+3
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | / | | |_|_|_|/ | |/| | | |
| * | | | | grc: allow for multiple sources over virtual connections (#1166)Sebastian Koslowski2017-01-191-3/+3
| | | | | |
* | | | | | Merge branch 'master' into nextJohnathan Corgan2016-12-101-1/+1
|\| | | | | | |_|_|_|/ |/| | | |
| * | | | grc: Strip trailing whitespace from Python output.Clayton Smith2016-12-101-1/+1
| | |_|/ | |/| |
* | | | grc: remove support for old msg queuesSebastian Koslowski2016-09-051-3/+1
| | | | | | | | | | | | | | | | cherry-picked from gtk3 branch
* | | | grc: remove wxgui support from coreSebastian Koslowski2016-09-051-4/+0
|/ / /
* | / grc: fix handling of initially opened filesSebastian Koslowski2016-07-261-1/+2
| |/ |/| | | | | | | File paths passed as argument were never converted to absolute paths. So the generator defaulted to /tmp since the directory write check failed (empty dirname)
* | grc: faulty callback code if setter call contained a variable block idSebastian Koslowski2016-05-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (do-over of c85984f105106ff0a7e3b387d680e0f2f5884d55) If a block contains a callback of the form self.block_id.param = $param the generators subst routine produced self.block_id.self.param = self.param due to a faulty splitting of the expression in expr_utils.py. This should fix this problem by not tokenizing "VAR0.VAR1".
* | grc-refactor: minor clean-up of callback generator codeSebastian Koslowski2016-05-251-14/+16
|/
* Revert "grc: fix callback evaluation"Sebastian Koslowski2016-05-211-11/+14
| | | | This reverts commit c85984f105106ff0a7e3b387d680e0f2f5884d55.
* grc: add warning for block flagged deprecatedSebastian Koslowski2016-05-201-0/+4
|
* grc: fix callback evaluationSebastian Koslowski2016-04-271-14/+11
|
* grc-refactor: remove (hopefully) all deps to GR in core/ and gui/Sebastian Koslowski2016-04-051-3/+6
|
* grc-refactor: move gui prefs to guiSebastian Koslowski2016-04-051-72/+17
|
* grc-refactor: Platform.pySebastian Koslowski2016-02-171-19/+17
|
* grc-refactor: move Messages to coreSebastian Koslowski2016-02-171-10/+7
|
* grc-refactor: Platform.py fixes, FlowGraphProxySebastian Koslowski2016-02-171-1/+2
|
* grc-refactor: cmake fixes and more reorganizingSebastian Koslowski2016-02-171-4/+3
|
* grc-refactor: rename grc/model/ to grc/core/Sebastian Koslowski2016-02-171-0/+451