cfg/bin/path-dedup.py
2017-12-14 15:38:11 +01:00

10 lines
202 B
Python
Executable file

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
out = []
[out.append(i) for i in os.environ["PATH"].split(":") if not out.count(i)]
print(":".join(out))