Re: [Tutor] include remote module

2009-09-14 Thread Eike Welk
On Monday 14 September 2009, Alan Gauld wrote: > It would also save valuable bandwidth and session time. Thinking about it... One could send compressed differences to the version on the CD. Rpm has such a feature I think (Delta RPM, Patch RPM). Eike.

Re: [Tutor] include remote module

2009-09-14 Thread Alan Gauld
"Eike Welk" wrote called this sort of script right after boot up. They could have the absolute most current version of an application from my server launched on their box and if their data from that application was For this kind of application you could tansfer *.tar.gz or *.rmp files and

Re: [Tutor] include remote module

2009-09-13 Thread Eike Welk
On Saturday 12 September 2009, Patrick wrote: > Imagine if I gave a client a live Linux CD that automatically > called this sort of script right after boot up. They could have the > absolute most current version of an application from my server > launched on their box and if their data from that ap

Re: [Tutor] include remote module

2009-09-12 Thread Patrick
Hey Patrick What I great idea. I did not even know about the compile function. Maybe this idea could really work. Imagine if I gave a client a live Linux CD that automatically called this sort of script right after boot up. They could have the absolute most current version of an application from

Re: [Tutor] include remote module

2009-09-12 Thread Rich Lovely
2009/9/12 Patrick : > Strange question. > > Is it possible to include a module that is on another computer? > > I have been day-dreaming about a project that would allow web code to > drive a desktop App. > > Thanks in advance-Patrick > ___ > Tutor ma

Re: [Tutor] include remote module

2009-09-12 Thread Alan Gauld
"Patrick" wrote Is it possible to include a module that is on another computer? Possible provided you can specify the patgh in some way that can be added to sys.path. Or you can read and exec. But whatever you do its extremely dangerous unless the remote computer is under your complete

Re: [Tutor] include remote module

2009-09-12 Thread Patrick Sabin
Maybe something like this helps you to solve your problem: # get code via http, etc. code = """ def blah(): print 'blah' print 'hello' blah() """ compiled_code = compile(code, 'filename', 'exec') exec(compiled_code) This way you could execute some code from a web client, but the client wo

Re: [Tutor] include remote module

2009-09-12 Thread Patrick
Hi Wayne Thanks for your help. I was thinking of the latter but now that I think of it, once you import a module it won't help to modify that module on the fly later anyways, right? I would need to re-import it. Sounds like reading it via http would be simpler. Thanks again-Patrick Wayne wrote:

[Tutor] include remote module

2009-09-12 Thread Patrick
Strange question. Is it possible to include a module that is on another computer? I have been day-dreaming about a project that would allow web code to drive a desktop App. Thanks in advance-Patrick ___ Tutor maillist - Tutor@python.org To unsubs