Commits

kiri  committed d53eef5

copy-paste bugfix

  • Participants
  • Parent commits 495e8af

Comments (0)

Files changed (1)

 
 def read_manifest(path, defs=defaults, omit_file_defs=False):
     """Read and parse manifest file for building drawables.
+    Calling this function also means modified "defaults" as read.
     """
     # read and parse json
     try:
             continue
         path_pattern = defaults["path_pattern"]
         if group_name in defaults["patterns"]:
-            if group_name in defaults["patterns"]:
-                path_pattern = defaults["patterns"][group_name]
+            path_pattern = defaults["patterns"][group_name]
         source = "build/{}-{}.png".format(export_name, group_name)
         dest = path_pattern.format(project_path=args.project_path, group=group_name, export_name=export_name)
         if args.verbose: