I know it's really unlikely... but maybe this should be 
```python
if '/' in __file__[1:]:
```