/usr/lib/python2.7/dist-packages/tomahawk/bootstrap.py is in python-tomahawk 0.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | import os
import sys
def set_lib_path(file):
parent, bin_dir = os.path.split(os.path.dirname(os.path.abspath(file)))
for dir in ('lib', ''):
path = os.path.join(parent, dir)
if os.path.exists(path):
sys.path.insert(0, path)
return parent, bin_dir
|