Remove duplicate values of an environment variable.
(variable)
| 202 | return reduced_paths |
| 203 | |
| 204 | def removeDuplicates(variable): |
| 205 | """Remove duplicate values of an environment variable. |
| 206 | """ |
| 207 | oldList = variable.split(os.pathsep) |
| 208 | newList = [] |
| 209 | for i in oldList: |
| 210 | if i not in newList: |
| 211 | newList.append(i) |
| 212 | newVariable = os.pathsep.join(newList) |
| 213 | return newVariable |
| 214 | |
| 215 | def find_vcvarsall(version): |
| 216 | """Find the vcvarsall.bat file |
no test coverage detected
searching dependent graphs…