Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion about_code_tool/genabout.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@ def main(parser, options, args):
print("ERROR: LICENSE_TEXT_LOCATION path does not exist.")
sys.exit(errno.EINVAL)

if mapping_config and not path_exists('MAPPING.CONFIG'):
mapping_config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'MAPPING.CONFIG')
if mapping_config and not path_exists(mapping_config_path):
print("ERROR: The file 'MAPPING.CONFIG' does not exist.")
sys.exit(errno.EINVAL)

Expand Down
2 changes: 1 addition & 1 deletion about_code_tool/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def path_exists(location):
"""
Return True if the path exists.
"""
return location and os.path.exists(abspath(location))
return location and os.path.exists(abspath(location))


def canonical_path(location):
Expand Down