Skip to content

Commit 04a7b19

Browse files
committed
Generate about_resource_path if it does not exist.
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 09ce9e6 commit 04a7b19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/attributecode/gen.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ def generate(location, base_dir, mapping, license_notice_text_location, fetch_li
226226
about.about_resource.original_value = posixpath.basename(about.about_file_path)
227227
about.about_resource.present = True
228228

229+
# Generate value for 'about_resource_path' if it does not exist
230+
# Basically, this should be the same as the 'about_resource'
231+
if not about.about_resource_path.value:
232+
about.about_resource_path.value = OrderedDict()
233+
about.about_resource_path.value = about.about_resource.value
234+
about.about_resource_path.present = True
235+
229236
if gen_license:
230237
about.license_file.value = OrderedDict()
231238
# Write generated LICENSE file

0 commit comments

Comments
 (0)