vdf
vdf copied to clipboard
When dumping Paths with double backslash it maintains the double backslash
As title implies when dumping something like:
"DepotBuildConfig"
{
"DepotID" "123456789"
"contentroot" "d:\\NekoNeko\\Build"
"FileMapping"
{
"LocalPath" ""
"DepotPath" "."
"recursive" "1"
}
"FileExclusion" ".pdb"
}
The path maintains its double backslashes when dumped
~~Duplicate of #28~~
My bad, the other issue with \ as the last character. You can use escaped=False to disable escaping.
>>> print(vdf.dumps({'path': 'd:\\NekoNeko\\Build'}, escaped=False))
"path" "d:\NekoNeko\Build"