Add missing script
This commit is contained in:
parent
15abdb3765
commit
a982aab40a
1 changed files with 10 additions and 0 deletions
10
bin/path-dedup.py
Executable file
10
bin/path-dedup.py
Executable 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))
|
Loading…
Reference in a new issue