Add missing script

This commit is contained in:
Knut Ahlers 2017-12-14 15:38:11 +01:00
parent 15abdb3765
commit a982aab40a
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

10
bin/path-dedup.py Executable file
View file

@ -0,0 +1,10 @@
#!/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))