Skip to content

Commit

Permalink
Fix assets in UFBT SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Mar 13, 2024
1 parent 3587cef commit ff36de9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ def icons(self):
icons = []
paths = []
is_main_assets = self.args.filename == "assets_icons"
symbols = (
pathlib.Path(__file__).parent / "../targets/f7/api_symbols.csv"
).read_text()
symbols = pathlib.Path(__file__).parent.parent
if "UFBT_HOME" in os.environ:
symbols /= "sdk_headers/f7_sdk"
symbols = (symbols / "targets/f7/api_symbols.csv").read_text()
api_has_icon = lambda name: f"Variable,+,{name},Icon," in symbols
# Traverse icons tree, append image data to source file
for dirpath, dirnames, filenames in os.walk(self.args.input_directory):
Expand Down

0 comments on commit ff36de9

Please sign in to comment.