how to improve simple python shell script (to compile list of files)
Jari Aalto
jari.aalto at cante.net
Sat Oct 15 12:43:36 EDT 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
mean:
python -c "command; command ...; command; ..."
Jari
More information about the Python-list
mailing list