Something Like os.environ['HTTP_REFERER']
Chris Rebert
clp2 at rebertia.com
Sun Dec 20 05:18:20 EST 2009
On Sun, Dec 20, 2009 at 2:06 AM, Victor Subervi <victorsubervi at gmail.com> wrote:
> Hi;
> I'm looking for something like os.environ['HTTP_REFERER'] but for python
> scripts. That is, if I have a script that is imported by another script, how
> can I have the script that is being imported determine which script imported
> it?
Allow me to ask the meta-question of: Why do you want to do that?
There is quite possibly a better means to accomplish whatever end you have.
Cheers,
Chris
--
http://blog.rebertia.com
More information about the Python-list
mailing list