Re: Run pyc file without specifying python path ?

2009-08-03 Thread Dave Angel
Barak, Ron wrote: -Original Message- From: Dave Angel [mailto:da...@ieee.org] Sent: Sunday, August 02, 2009 12:36 To: Barak, Ron Cc: 'python-list@python.org' Subject: Re: Run pyc file without specifying python path ? Barak, Ron wrote: Hi Dave, It seems like I don&#x

Re: Run pyc file without specifying python path ?

2009-08-02 Thread Dave Angel
Barak, Ron wrote: Hi Dave, It seems like I don't understand your solution. I use the (appatched) soapAPI.py as the wrapper to parsing.pyc. However, if I do (for instance): $ python -u parsing.pyc -U aaa The last line of the output is (as expected): return_code: 12 ; params: {'username': 'aaa'

RE: Run pyc file without specifying python path ?

2009-08-02 Thread Barak, Ron
> -Original Message- > From: Dave Angel [mailto:da...@dejaviewphoto.com] > Sent: Thursday, July 30, 2009 20:08 > To: Barak, Ron > Cc: 'python-list@python.org' > Subject: Re: Run pyc file without specifying python path ? > > Barak, Ron wrote: > > Hi

Re: Run pyc file without specifying python path ?

2009-07-31 Thread Processor-Dev1l
On Jul 30, 4:47 pm, "Barak, Ron" wrote: > > -Original Message- > > From: Dave Angel [mailto:da...@dejaviewphoto.com] > > Sent: Thursday, July 30, 2009 16:03 > > To: Barak, Ron > > Cc: 'Dave Angel'; 'python-l...@python.org'

RE: Run pyc file without specifying python path ?

2009-07-31 Thread Barak, Ron
> -Original Message- > From: Dave Angel [mailto:da...@dejaviewphoto.com] > Sent: Thursday, July 30, 2009 16:03 > To: Barak, Ron > Cc: 'Dave Angel'; 'python-list@python.org' > Subject: RE: Run pyc file without specifying python path ? > >

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Aahz
In article , Chris Rebert wrote: > >No, with the shebang line (and assuming execute permissions on the >file), it would look like: > >./wrapper.py There's no reason to name it ".py"; you can have a perfectly useful "shell script" that just happens to list python on the shebang line instead of th

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Gabriel Genellina
En Thu, 30 Jul 2009 12:16:46 -0300, Unknown escribió: On 2009-07-30, Barak, Ron wrote: On second thoughts, I may have a problem implementing the wrapper solution, because my actual test_pyc.pyc, needs to parse its command line. Namely, the actual call to test_pyc.pyc looks something like th

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Dave Angel
#x27;s an obvious answer, I just cannot figure it out). Bye, Ron. -Original Message- From: Dave Angel [mailto:da...@dejaviewphoto.com] Sent: Thursday, July 30, 2009 16:03 To: Barak, Ron Cc: 'Dave Angel'; 'python-list@python.org' Subject: RE: Run

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, Barak, Ron wrote: > Hi Dave, > > On second thoughts, I may have a problem implementing the > wrapper solution, because my actual test_pyc.pyc, needs to > parse its command line. Namely, the actual call to > test_pyc.pyc looks something like this: > > $ python test_pyc.py -U dave -P

RE: Run pyc file without specifying python path ?

2009-07-30 Thread Barak, Ron
ious answer, I just cannot figure it out). Bye, Ron. > -Original Message- > From: Dave Angel [mailto:da...@dejaviewphoto.com] > Sent: Thursday, July 30, 2009 16:03 > To: Barak, Ron > Cc: 'Dave Angel'; 'python-list@python.org' > Subject: RE: Run pyc f

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, Dave Angel wrote: > Steven makes some good points. You have to define what level > of clever you're protecting from. A determined hacker will > get in no matter what you do, unless you want to ship the > program in a proprietary embedded system, encased in epoxy. That won't stop

RE: Run pyc file without specifying python path ?

2009-07-30 Thread Dave Angel
Barak, Ron wrote: -Original Message- From: Dave Angel [mailto:da...@ieee.org] Sent: Wednesday, July 29, 2009 21:05 To: Barak, Ron Cc: 'python-list@python.org' Subject: Re: Run pyc file without specifying python path ? Barak, Ron wrote: Hi, I wanted to make a python

Re: Run pyc file without specifying python path ?

2009-07-30 Thread PythonAB
On 30 jul 2009, at 12:57, Chris Rebert wrote: On Thu, Jul 30, 2009 at 3:42 AM, Barak, Ron wrote: From: PythonAB [mailto:pyt...@rgbaz.eu] Sent: Thursday, July 30, 2009 12:18 To: Barak, Ron Cc: 'Dave Angel'; 'python-list@python.org' Subje

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Chris Rebert
On Thu, Jul 30, 2009 at 3:42 AM, Barak, Ron wrote: > > > > From: PythonAB [mailto:pyt...@rgbaz.eu] > Sent: Thursday, July 30, 2009 12:18 > To: Barak, Ron > Cc: 'Dave Angel'; 'python-list@python.org' > Subject: Re:

RE: Run pyc file without specifying python path ?

2009-07-30 Thread Barak, Ron
From: PythonAB [mailto:pyt...@rgbaz.eu] Sent: Thursday, July 30, 2009 12:18 To: Barak, Ron Cc: 'Dave Angel'; 'python-list@python.org' Subject: Re: Run pyc file without specifying python path ? Hi Dave, Your solution sort of defeats my int

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Steven D'Aprano
On Thu, 30 Jul 2009 07:01:28 +0100, Barak, Ron wrote: > I wanted my application to "hide" the fact that it's a python script, > and look as much as possible like it's a compiled program. What do you think the "c" in .pyc stands for? What it's not is a compiled to machine-code stand alone executa

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Christian Heimes
Barak, Ron wrote: > Your solution sort of defeats my intended purpose (sorry for not divulging my > 'hidden agenda'). > I wanted my application to "hide" the fact that it's a python script, and > look as much as possible like it's a compiled program. > The reason I don't just give my user a py fi

Re: Run pyc file without specifying python path ?

2009-07-30 Thread PythonAB
Hi Dave, Your solution sort of defeats my intended purpose (sorry for not divulging my 'hidden agenda'). I wanted my application to "hide" the fact that it's a python script, and look as much as possible like it's a compiled program. The reason I don't just give my user a py file, is that I

RE: Run pyc file without specifying python path ?

2009-07-29 Thread Barak, Ron
> -Original Message- > From: Dave Angel [mailto:da...@ieee.org] > Sent: Wednesday, July 29, 2009 21:05 > To: Barak, Ron > Cc: 'python-list@python.org' > Subject: Re: Run pyc file without specifying python path ? > > Barak, Ron wrote: > > Hi, >

Re: Run pyc file without specifying python path ?

2009-07-29 Thread Dave Angel
Barak, Ron wrote: Hi, I wanted to make a python byte-code file executable, expecting to be able to run it without specifying "python" on the (Linux bash) command line. So, I wrote the following: [r...@vmlinux1 python]# cat test_pyc.py #!/usr/bin/env python print "hello" [r...@vmlinux1 python