how to make a .py file executable code example
Example 1: how to make exe from.py file
pyinstaller --onefile pythonScriptName.py
Example 2: python make file executable
if __name__ == "__main__":
your_function()
pyinstaller --onefile pythonScriptName.py
if __name__ == "__main__":
your_function()