<filename>foo.py/bar.py
print(f'This is the python code file bar.py and my name currently is:{__name__}')
if __name__ == 'bar':
    print(f'I was imported as a module.')
print(f'bar.py __file__ variable:{__file__}')    
print('If the slashes in the file path lean to the right then I am __main__')

<filename>foo.py/bar.py
print(f'This is the python code file bar.py and my name currently is:{__name__}')
if __name__ == 'bar':
    print(f'I was imported as a module.')
print(f'bar.py __file__ variable:{__file__}')    
print('If the slashes in the file path lean to the right then I am __main__')
