How to tell if I'm being run from a shell or a module
Jeff
jeffober at gmail.com
Thu Feb 14 18:27:09 CET 2008
Previous message:
Floating point bug?
Next message:
Copying weakrefs
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Conventionally, you use: if __name__ == '__main__': # do something as a script
Previous message:
Floating point bug?
Next message:
Copying weakrefs
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-list mailing list