Glenn Jocher d833ab3d25
Create is_pip() function (#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
```
2021-05-30 20:52:42 +02:00
..
2021-05-24 12:42:36 +02:00
2020-05-29 17:04:54 -07:00
2021-05-30 20:52:42 +02:00