File: get-py-modules-path.py

package info (click to toggle)
lio-utils 3.1%2Bgit2.fd0b34fd-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 992 kB
  • sloc: ansic: 7,031; python: 3,039; perl: 885; sh: 414; makefile: 118
file content (11 lines) | stat: -rwxr-xr-x 259 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python

from distutils.sysconfig import get_python_lib,re;

str = get_python_lib()

# Fix up get_python_lib() path for Python v2.6 on Ubuntu 9.10 and SLES 11
if re.search('python2.6', str):
	print str.replace('/usr','/usr/local')
else:
	print str;