def unixpath(d):
    d = d.replace('\\','/')
    if not d.endswith('/'): d = '%s/' % d
    return d
ensure path uses unix delimiters
dataset/ETHPy150Open xraypy/xraylarch/plugins/io/fileutils.py/unixpath