ufoLib.__init__: use os.path instead of slash to fix doctest failing on Windows
This commit is contained in:
parent
8db42c8e37
commit
f320554077
@ -1176,10 +1176,12 @@ def makeUFOPath(path):
|
||||
"""
|
||||
Return a .ufo pathname.
|
||||
|
||||
>>> makeUFOPath("/directory/something.ext")
|
||||
'/directory/something.ufo'
|
||||
>>> makeUFOPath("/directory/something.another.thing.ext")
|
||||
'/directory/something.another.thing.ufo'
|
||||
>>> makeUFOPath("directory/something.ext") == (
|
||||
... os.path.join('directory', 'something.ufo'))
|
||||
True
|
||||
>>> makeUFOPath("directory/something.another.thing.ext") == (
|
||||
... os.path.join('directory', 'something.another.thing.ufo'))
|
||||
True
|
||||
"""
|
||||
dir, name = os.path.split(path)
|
||||
name = ".".join([".".join(name.split(".")[:-1]), "ufo"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user