Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When dumping Paths with double backslash it maintains the double backslash #38

Open
elamhut opened this issue May 12, 2021 · 2 comments
Labels

Comments

@elamhut
Copy link

elamhut commented May 12, 2021

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

@rossengeorgiev
Copy link
Contributor

rossengeorgiev commented May 12, 2021

Duplicate of #28

@rossengeorgiev
Copy link
Contributor

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants