Creating VPK from directory doesn't work on Windows
JCRPaquin opened this issue · 3 comments
JCRPaquin commented
Looks like file paths are tripping up Windows. Specifically, I couldn't create a VPK given a directory on Windows under Python 3.6.
I've fixed it locally using pathlib
but haven't tested on a *nix platform yet; will push these changes to a fork soon.
Using pathlib
may cause issues with Python 2; I'm not sure how much this upsets you.
rossengeorgiev commented
Any stracktrace? Steps to reproduce?
JCRPaquin commented
Python 3.6.3, Windows 10
To reproduce:
- Make a root folder
- Make a subfolder
- Add a file to the subfolder
- Run
vpk -c <root folder name> <vpk name>
The process should fail with an IOError indicating that no such file was found. No stack trace is output.
rossengeorgiev commented
Cool, I reproduced the issue.