liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.46k stars 223 forks source link

pyminifier --destdir not working #112

Closed divyanayan closed 5 years ago

divyanayan commented 5 years ago

I was using pyminifier --destdir to send minfied files to a specific directory but it gives an error that specified file is not found . i used with the path given in the documentation as well still gives the same error .

pyminifier a.py --destdir=./minified

Error : FileNotFoundError: [WinError 3] The system cannot find the path specified: '--destdir=./minified'

varunsapre commented 5 years ago

The format of the command should be pyminifier --destdir=./minified a.py

divyanayan commented 5 years ago

pyminifier --destdir=./minified a.py Thanks varun for the reply ,but in this case i made a directory as say hello and hence command would be pyminifier --destdir=./hello a.py .i was expecting a file to be created in hello directory

varunsapre commented 5 years ago

According to the documentation, the --destdir option can be used only when handling multiple files. If you want to run it only for one file, you could try using pyminifier -o hello/a.py a.py

divyanayan commented 5 years ago

pyminifier --destdir=./hello a.py inserts.py i was able to achieve what is expected ..thanks a lot Varun for guiding me.Would like to know this i can use to reduce python lib size as well right ,mainly to overcome AWS lambda size limtation of 50 mb.