On Sun, Dec 20, 2009 at 2:06 AM, Victor Subervi <victorsube...@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 -- http://mail.python.org/mailman/listinfo/python-list