You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
A solution to the above would be to introduce a new argument, e.g --filters-modules MODULE, which will accept Python modules and load them using importlib.import_module.
The current implementation allows loading custom filters from Python files by using the
--filtersargument.My problem is I have compiled Python files, i.e Python bytecode (.pyc files) and passing them to
--filtersfails with the following error:I understand the main reason for the above behavior is using Python's
imp.load_sourcefunction, which can't read bytecode:j2cli/j2cli/cli.py
Lines 72 to 74 in 26a67e9
A solution to the above would be to introduce a new argument, e.g
--filters-modules MODULE, which will accept Python modules and load them usingimportlib.import_module.