Re: Need compile python code

2006-09-25 Thread mistral
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

Re: Need compile python code

2006-09-25 Thread 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 simple way do this(script is correct), i will

Re: Need compile python code

2006-09-23 Thread John Machin
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

Re: Need compile python code

2006-09-23 Thread mistral
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

Re: Need compile python code

2006-09-23 Thread 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 anywhere, can i do this wrom normal GUI?

Re: Need compile python code

2006-09-23 Thread Carsten Haese
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.

Re: Need compile python code

2006-09-23 Thread mistral
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

Re: Need compile python code

2006-09-23 Thread MonkeeSage
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

Re: Need compile python code

2006-09-23 Thread MonkeeSage
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

Re: Need compile python code

2006-09-23 Thread mistral
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

Re: Need compile python code

2006-09-23 Thread 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.html Regards, Jordan -- http://mail.

Re: Need compile python code

2006-09-23 Thread mistral
Bjoern Schliessmann писал(а): > mistral wrote: > > > Need compile python code, source is in html and starts with > > parameters: > > Excuse me? > > > #!/bin/sh - > > "exec" "python" "-O" "$0" "$@" > >

Re: Need compile python code

2006-09-23 Thread mistral
Bjoern Schliessmann писал(а): > mistral wrote: > > > Need compile python code, source is in html and starts with > > parameters: > > Excuse me? > > > #!/bin/sh - > > "exec" "python" "-O" "$0" "$@" > >

Re: Need compile python code

2006-09-23 Thread 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. W

Need compile python code

2006-09-23 Thread mistral
Need compile python code, source is in html and starts with parameters: #!/bin/sh - "exec" "python" "-O" "$0" "$@" I have installed ActivePython for windows. -- http://mail.python.org/mailman/listinfo/python-list