@@ -208,8 +208,8 @@ def verify_license_files(self, input_list, project_dir, license_in_project):
208208 file_location = line ['about_file' ]
209209 if file_location .startswith ('/' ):
210210 file_location = file_location .partition ('/' )[2 ]
211- if file_location .endswith ('/' ):
212- file_location = file_location .rpartition ('/' )[0 ]
211+ # if file_location.endswith('/'):
212+ # file_location = file_location.rpartition('/')[0]
213213 about_parent_dir = dirname (file_location )
214214 if license_in_project :
215215 license_file_path = join (project_dir , about_parent_dir , license_file )
@@ -661,8 +661,8 @@ def main(parser, options, args):
661661 print ("The '--copy_license' <project_path> must be a directory." )
662662 print ("'--copy_license' is skipped." )
663663 else :
664- if not copy_license_path .endswith ('/' ):
665- copy_license_path += '/'
664+ # if not copy_license_path.endswith('/'):
665+ # copy_license_path += '/'
666666 project_parent_dir = dirname (copy_license_path )
667667 licenses_in_project = True
668668 license_list = gen .verify_license_files (input_list , project_parent_dir , licenses_in_project )
@@ -676,8 +676,8 @@ def main(parser, options, args):
676676 print ("The '--license_text_location' <license_path> must be a directory." )
677677 print ("'--license_text_location' is skipped." )
678678 else :
679- if not license_text_path .endswith ('/' ):
680- license_text_path += '/'
679+ # if not license_text_path.endswith('/'):
680+ # license_text_path += '/'
681681 license_dir = dirname (license_text_path )
682682 licenses_in_project = False
683683 license_list = gen .verify_license_files (input_list , license_dir , licenses_in_project )
0 commit comments