get name of module python code example
Example: python get module name
def main():
print('Running test...')
...
if __name__ == '__main__':
main()
def main():
print('Running test...')
...
if __name__ == '__main__':
main()