CPython on the Web

azakai alonmozilla at gmail.com
Mon Jan 3 20:59:10 EST 2011


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