CPython on the Web

MrJean1 mrjean1 at gmail.com
Mon Jan 3 23:34:33 EST 2011


FYI,

The example

  http://syntensity.com/static/python.html

works fine in Safari 4.1.3 on MacOS X Tiger (10.4.11).

/Jean


On Jan 3, 5:59 pm, azakai <alonmozi... at gmail.com> wrote:
> On Jan 3, 12:23 pm, Gerry Reno <gr... at verizon.net> wrote:
>
>
>
>
>
> > On 01/03/2011 03:10 PM, azakai wrote:
>
> > > On Jan 2, 5:55 pm, Gerry Reno <gr... at verizon.net> wrote:
>
> > >> I tried printing sys.path and here is the output:
>
> > >> ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/',
> > >> '/usr/local/lib/python2.7/plat-linux2',
> > >> '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old',
> > >> '/usr/local/lib/lib-dynload']
>
> > >> Now, those paths must be on your machine because they are not on my
> > >> client machine.  But the interpreter is now running on MY machine.  Well
> > >> in a sandbox really.  So how is that going to work?
>
> > > Yeah, those are the paths on the machine where the binary was compiled
> > > (so, they are the standard paths on ubuntu).
>
> > > Anyhow the filesystem can't (and shouldn't) be accessed from inside a
> > > browser page.
>
> > Well, the local filesystem could be accessible with the user's
> > permission and this should be an option.
>
> Hmm, I think this might be possible with the HTML5 File API. Would
> definitely be useful here.
>
> - azakai




More information about the Python-list mailing list