fix logging of success in finding license at the rootdir
(issue
@@ -768,13 +768,23 @@ def check_font_has_a_license(fb, file_path):
found = False
for license in ['OFL.txt', 'LICENSE.txt']:
license_path = os.path.join(file_path, license)
- if os.path.exists(license_path) or os.path.exists(license):
+ if os.path.exists(license_path):
if found is not False:
fb.error("More than a single license file found."
" Please review.")
found = "multiple"
else:
found = license_path
+
+ # Also try at the current working dir:
+ elif os.path.exists(license):
+ if found is not False:
+ fb.error("More than a single license file found."
+ " Please review.")
+ found = "multiple"
+ else:
+ found = license
+
if found != "multiple":
if found is False:
fb.error("No license file was found."
