def winpath(d):
    if d.startswith('//'): d = d[1:]
    d = d.replace('/','\\')
    if not d.endswith('\\'): d = '%s\\' % d
    return d
ensure path uses windows delimiters
dataset/ETHPy150Open xraypy/xraylarch/plugins/io/fileutils.py/winpath