Greetings list,
Let's say i import module1
import module1
can we do
module1()
straight out of the box?
If not i propose something like
if __name__ == '__main__':
__file__.callable = True
Kind Regards,
Abdur-Rahmaan Janhangeer
about <https://compileralchemy.github.io/> | blog
<https://www.pythonkitchen.com>
github <https://github.com/Abdur-RahmaanJ>
Mauritius
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/SENV4MEVA5QW2YFC4WDOY6X2REMX77GM/
Code of Conduct: http://python.org/psf/codeofconduct/