Piet van Oostrum писал(а):
> > "MonkeeSage" <[EMAIL PROTECTED]> (M) wrote:
>
> >M> mistral wrote:
> >>> No, something is wrong there. what I need is just compile one python
> >>> file which will generate html page, with parameters:
> >>> "exec" "python" "-O" "$0" "$@"
> >>>
> >>> just need si
> "MonkeeSage" <[EMAIL PROTECTED]> (M) wrote:
>M> mistral wrote:
>>> No, something is wrong there. what I need is just compile one python
>>> file which will generate html page, with parameters:
>>> "exec" "python" "-O" "$0" "$@"
>>>
>>> just need simple way do this(script is correct), i will
mistral wrote:
> писал(а):
There seems to be a rather large communication gap. Consider asking
your question in a Russian-speaking Python-related forum, for example:
http://zope.net.ru/
Regards,
John
--
http://mail.python.org/mailman/listinfo/python-list
MonkeeSage писал(а):
> mistral wrote:
> > No, something is wrong there. what I need is just compile one python
> > file which will generate html page, with parameters:
> > "exec" "python" "-O" "$0" "$@"
> >
> > just need simple way do this(script is correct), i will not set any
> > patches anywh
mistral wrote:
> No, something is wrong there. what I need is just compile one python
> file which will generate html page, with parameters:
> "exec" "python" "-O" "$0" "$@"
>
> just need simple way do this(script is correct), i will not set any
> patches anywhere, can i do this wrom normal GUI?
On 23 Sep 2006 12:24:58 -0700, mistral wrote
> No, something is wrong there. what I need is just compile one python
> file which will generate html page, with parameters:
> "exec" "python" "-O" "$0" "$@"
This is not a python script. It appears to be a Unix shell script that calls a
python script.
MonkeeSage wrote:
> mistral wrote:
> > this not work for me, show compilation error. Is there simple way
> > compile pythone file? its absolutely unclear with command line. Just
> > show me exact command I need run(from python interactive shell?)
>
> OK...
>
> # cd to where the file.py is
> $ cd
MonkeeSage wrote:
> >>> import py_compile
> >>> py_compiler.compile('file.py')
^^^
Should be:
>>> py_compile.compile('file.py')
--
http://mail.python.org/mailman/listinfo/python-list
mistral wrote:
> this not work for me, show compilation error. Is there simple way
> compile pythone file? its absolutely unclear with command line. Just
> show me exact command I need run(from python interactive shell?)
OK...
# cd to where the file.py is
$ cd /some/dir
# start python interacti
MonkeeSage писал(а):
> mistral wrote:
> > Just to comple python ode - it creates html page, nothing more, nothing
> > else.. Just generate one html page.
>
> I *think* this is what you want:
>
> python -O -m py_compile file.py
> python file.pyo
>
> See: http://docs.python.org/lib/module-pycompile
mistral wrote:
> Just to comple python ode - it creates html page, nothing more, nothing
> else.. Just generate one html page.
I *think* this is what you want:
python -O -m py_compile file.py
python file.pyo
See: http://docs.python.org/lib/module-pycompile.html
Regards,
Jordan
--
http://mail.
Bjoern Schliessmann писал(а):
> mistral wrote:
>
> > Need compile python code, source is in html and starts with
> > parameters:
>
> Excuse me?
>
> > #!/bin/sh -
> > "exec" "python" "-O" "$0" "$@"
>
> Is the line break intended?
>
> > I have installed ActivePython for windows.
>
> What exactly do
Bjoern Schliessmann писал(а):
> mistral wrote:
>
> > Need compile python code, source is in html and starts with
> > parameters:
>
> Excuse me?
>
> > #!/bin/sh -
> > "exec" "python" "-O" "$0" "$@"
>
> Is the line break intended?
>
> > I have installed ActivePython for windows.
>
> What exactly do
mistral wrote:
> Need compile python code, source is in html and starts with
> parameters:
Excuse me?
> #!/bin/sh -
> "exec" "python" "-O" "$0" "$@"
Is the line break intended?
> I have installed ActivePython for windows.
What exactly do you want?
Python code is always compiled (to byte cod
14 matches
Mail list logo