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