Logo Search packages:      
Sourcecode: ldtp version File versions

find-python-path.py

#!/usr/bin/env python

import sys
from os.path import split, basename

def find_path ():
    for path in sys.path:
      (head, tail) = split (path)
      if tail == 'site-packages':
          base = basename (head)
          print base + '/' + tail
          return

find_path ()

Generated by  Doxygen 1.6.0   Back to index