How to tell if in a script...

Lance Ellinghouse (lance@markv.com)
Wed, 28 Jul 93 20:03:55 PDT

Is there a way to tell from inside a module if you are in an import
statement or loading from a script?

I have a .py file that can be loaded via 'import' or run from
the command line..

Also, is there a way to tell if this module is loaded for the first time
or if it is being reloaded via 'reload'???

I have a couple modules that MUST save state from import to reload.

--

Lance Ellinghouse lance@markv.com

1231 bit key fingerprint = 56 DA 31 0C 17 51 36 6A 4E D4 E0 11 D9 B8 06 0A 1024 bit key fingerprint = 66 2C 75 F2 E9 1C 32 84 3A E3 B0 5E 48 01 4C 37 You can recieve my Public Key by `finger lance@mark.com`