Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create
is_pip()
function (ultralytics#3391)
Returns `True` if file is part of pip package. Useful for contextual behavior modification. ```python def is_pip(): # Is file in a pip package? return 'site-packages' in Path(__file__).absolute().parts ```
- Loading branch information