Skip to content

Commit

Permalink
correct the URL and f-strings format (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <[email protected]>
  • Loading branch information
Chen Lihui authored Jul 28, 2023
1 parent 008a836 commit a7d0222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpyutils/import_c_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def import_c_library(name: str, package: Optional[str] = None):
expected_path = Path(__file__).parents[1] / (
name[1:] + sysconfig.get_config_var('EXT_SUFFIX'))
assert not expected_path.is_file()
link = f'https://docs.ros.org/en/{distro}/Guides/Installation-Troubleshooting.html#import-failing-without-library-present-on-the-system' # noqa: E501
link = f'https://docs.ros.org/en/{distro}/How-To-Guides/Installation-Troubleshooting.html#import-failing-without-library-present-on-the-system' # noqa: E501
e.msg += \
f"\nThe C extension '{expected_path}' isn't present on the " \
f"system. Please refer to '{link}' for possible solutions"
if e.path is not None and os.path.isfile(e.path):
link = 'https://docs.ros.org/en/{distro}/Guides/Installation-Troubleshooting.html#import-failing-even-with-library-present-on-the-system' # noqa: E501
link = f'https://docs.ros.org/en/{distro}/How-To-Guides/Installation-Troubleshooting.html#import-failing-even-with-library-present-on-the-system' # noqa: E501
e.msg += \
f"\nThe C extension '{e.path}' failed to be imported while " \
f"being present on the system. Please refer to '{link}' for " \
Expand Down

0 comments on commit a7d0222

Please sign in to comment.