File: syspath.py

package info (click to toggle)
pyfribidi 0.6-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 440 kB
  • ctags: 66
  • sloc: sh: 2,920; ansic: 168; python: 165; makefile: 14
file content (9 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
import os, sys

if sys.platform == 'darwin':
    # Setup sys.path so we can build and test a built version without
    # installing in the system site-packages, which reqire root access.
    builddir = [os.path.join('build', name) for name in os.listdir('build')
                if name.startswith('lib.%s' % sys.platform)]
    sys.path = builddir + sys.path