Skip to content

Commit

Permalink
Restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Apr 3, 2023
1 parent 9a65c8e commit 7da2846
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions scripts/py_matter_idl/matter_idl/generators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ def __init__(self, storage: GeneratorStorage, idl: Idl, loader: Optional[jinja2.
"""
if not loader:
if not fs_loader_searchpath:
fs_loader_searchpath=os.path.dirname(__file__)
loader=jinja2.FileSystemLoader(searchpath=fs_loader_searchpath)
fs_loader_searchpath = os.path.dirname(__file__)
loader = jinja2.FileSystemLoader(searchpath=fs_loader_searchpath)

self.storage = storage
self.idl = idl
self.jinja_env = jinja2.Environment(loader=loader, keep_trailing_newline=True)
self.jinja_env = jinja2.Environment(
loader=loader, keep_trailing_newline=True)
self.dry_run = False

RegisterCommonFilters(self.jinja_env.filters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import List
import os
from typing import List

from matter_idl.generators import CodeGenerator, GeneratorStorage
from matter_idl.matter_idl_types import Cluster, ClusterSide, Idl
Expand Down

0 comments on commit 7da2846

Please sign in to comment.