Closed xzzh999 closed 5 years ago
You have a file named (literally) '.*.py' ? Does this work?
pyminifier -d /temp -O --replacement-length=5 --obfuscate-builtins */*.py
I think that even though you're in Windows it should know how to parse a Unixy path like that.
Thank you for your reply, my writting mistake, i tried ".*.py" and it show the error above.
And yes, i think i can parse .py myself to get a list of files instead of using .py if pyminifier doesn't surpport it.
Apparently, Wildcards -as shown in the docs- are not being supported on Windows.
Example: pyminifier -d "C:\Users\admin\Desktop\Projects\Python 3.5.1\sysAuth\New" "C:\Users\user\Desktop\Projects\abc\xyz\*.py"
gives error OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\user\\Desktop\\Projects\\abc\\xyz\\*.py'
However, when a definite filename in the directory is give, like "C:\Users\user\Desktop\Projects\abc\xyz\helloWorld.py"
, PyMinifier works perfectly.
This is not a problem with Linux, but for compatibility, I think a different method for going through directories should be used.
idle for too long time, close it.
Hi,bigcow,you're done a great work,and i found a problem here when use follow cmd on Win7 64:
and here is the Traceback:
Seems can't recognize the '.*.py', can you give some help, thank you very much!