dflook / python-minifier

Transform Python source code into its most compact representation
MIT License
583 stars 43 forks source link

Provide --overwrite argument to overwrite code in place #29

Closed johnthagen closed 2 years ago

johnthagen commented 3 years ago

As part of a build process, it can be helpful to overwrite the .py file in place. On *Nix, you can use > shell redirection, but this isn't portable to all platforms, such as Windows.

$ pyminifier --overwrite hello.py
dflook commented 2 years ago

This has been implemented in 2.6.0, where it is spelled --in-place.