how to include a file -- not import??

John Nielsen nielsenjf at my-deja.com
Wed Jan 5 23:23:37 EST 2000


Hopefully, there's a simple answer to a problem I am having.

I am using import to include a file, however, it looks like the module
then has another namespace, which means it can't access some variables.

Is there a way to simply include the raw text and insert it into your
own code, as if it was not in a another file?

Thanks for any help,

john



--
nielsenjf at my-Deja.com


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



More information about the Python-list mailing list