(mod_name)
| 965 | |
| 966 | |
| 967 | def get_fullname(mod_name): |
| 968 | try: |
| 969 | import importlib.util |
| 970 | |
| 971 | spec = importlib.util.find_spec(mod_name) |
| 972 | if spec is not None and spec.origin is not None and spec.has_location: |
| 973 | return spec.origin |
| 974 | except (ImportError, ModuleNotFoundError, ValueError): |
| 975 | pass |
| 976 | return None |
| 977 | |
| 978 | |
| 979 | def get_package_dir(mod_name): |
no outgoing calls