| | 13 | |
| | 14 | if sys.platform == 'linux2': |
| | 15 | os.environ['PATH'] += ":/usr/local/bin:$home/bin:.:..:../.." |
| | 16 | |
| | 17 | tcinc = commands.getoutput('tcucodec conf -i 2>/dev/null') |
| | 18 | m = re.search(r'-I([/\w]+)', tcinc) |
| | 19 | if m: |
| | 20 | for path in m.groups(): |
| | 21 | include_dirs.append(path) |
| | 22 | include_dirs = sorted(set(include_dirs), key=include_dirs.index) |
| | 23 | |
| | 24 | tclib = commands.getoutput('tcucodec conf -l 2>/dev/null') |
| | 25 | m = re.search(r'-L([/\w]+)', tclib) |
| | 26 | if m: |
| | 27 | for path in m.groups(): |
| | 28 | library_dirs.append(path) |
| | 29 | library_dirs = sorted(set(library_dirs), key=library_dirs.index) |