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 has been 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 text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The current implementation allows loading custom filters from Python files by using the
--filters
argument.My problem is I have compiled Python files, i.e Python bytecode (.pyc files) and passing them to
--filters
fails with the following error:I understand the main reason for the above behavior is using Python's
imp.load_source
function, 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
.The text was updated successfully, but these errors were encountered: