cfg/bin/path-dedup.py

11 lines
202 B
Python
Raw Normal View History

2017-12-14 14:38:11 +00:00
#!/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))