how to improve simple python shell script (to compile list of files)
jari.aalto at cante.net
Sat Oct 15 18:43:36 CEST 2005
"Fredrik Lundh" <fredrik at pythonware.com> writes:
> Jari Aalto wrote:
| > Please suggest comments how can I make this script to work
| > from bash.
> replace it with a call to the compileall module?
> $ python -mcompileall [directory...]
Thanks, but that will not work. The files are gathered from discrete
places and I'd need advice why the simple -c options does
not accept the code inside parentheses.
Are there some restrictions in Python to use only "all in one line"? I
python -c "command; command ...; command; ..."
More information about the Python-list