(wierd situation) got the answer :-)

John Nielsen nielsenjf at my-deja.com
Thu Jan 6 17:38:10 EST 2000


Thanks to another poster Andrew Csillag, I know now that you need to do
the following:

exec('filename').read

It works!

john


In article <853064$ei7$1 at nnrp1.deja.com>,
  John Nielsen <nielsenjf at my-deja.com> wrote:
> I already tried from file import.
> That doesn't help me :-(
>
> Let me explain the situation further:
>
> I have code running in an ASP environment, but I don't want it to know
> that it is doing so. So I localize the ASP specific stuff in another
> file.
>
> The problem is the module in the other file does not have access to
> ASP's objects. And I don't want to send it those objects,
> since it is not supposed to know about it.
>
> Any ideas on the best way to deal with this?
>
> john
>
> --
> nielsenjf at my-Deja.com
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

--
nielsenjf at my-Deja.com


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list