[Fix] typo in setup.py (#1095)

This commit is contained in:
Tong Gao 2022-06-21 17:40:47 +08:00 committed by GitHub
parent 4f36bcd1aa
commit d669ce2e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ version_file = 'mmocr/version.py'
is_windows = sys.platform == 'win32' is_windows = sys.platform == 'win32'
def add_mim_extention(): def add_mim_extension():
"""Add extra files that are required to support MIM into the package. """Add extra files that are required to support MIM into the package.
These files will be added by creating a symlink to the originals if the These files will be added by creating a symlink to the originals if the
@ -163,7 +163,7 @@ def parse_requirements(fname='requirements.txt', with_version=True):
if __name__ == '__main__': if __name__ == '__main__':
add_mim_extention() add_mim_extension()
library_dirs = [ library_dirs = [
lp for lp in os.environ.get('LD_LIBRARY_PATH', '').split(':') lp for lp in os.environ.get('LD_LIBRARY_PATH', '').split(':')
if len(lp) > 1 if len(lp) > 1