dflook / python-minifier

Transform Python source code into its most compact representation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide --overwrite argument to overwrite code in place

johnthagen opened this issue · comments

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

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