blob: 21a9d0bf65636a3ec0ba743560a2e99b4fffb240 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env python
import sys
from os.path import split, basename
def find_path ():
for path in sys.path:
(head, tail) = split (path)
# Forcing python path to be used as /usr/lib instead of /usr/local/lib
if (tail == 'site-packages' or tail == 'dist-packages') and \
path.find ('local') == -1:
base = basename (head)
print path
#print base + '/' + tail
return
find_path ()
|