<reponame>7amoodtarek/wifi-password-finder<filename>run.py
#!/bin/bash
"""
Run this script if you are unsure whether which script to run.
Refere to README.md for further information.

"""

import os
from sys import platform


def main():
    try:
        # Since the os.system commands for each operating system is different.
        if platform == 'win32':
            os.system("python3 win.py")
        elif platform == 'darwin':
            os.system("python3 mac.py")
        elif platform == 'linux':
            os.system("python3 linux.py")
        # This will happen probably if the client is using a different shell in a particular os.
        else:
            with open("README.md", 'r') as f:
                print(f.read())
                from time import sleep
                print("exiting after 20 seconds")
                sleep(20)
    except (KeyboardInterrupt, EOFError):
        exit("\nEXITED")


if __name__ == '__main__':
    main()

#!/bin/bash
"""
Run this script if you are unsure whether which script to run.
Refere to README.md for further information.

"""

import os
from sys import platform


def main():
    try:
        # Since the os.system commands for each operating system is different.
        if platform == 'win32':
            os.system("python3 win.py")
        elif platform == 'darwin':
            os.system("python3 mac.py")
        elif platform == 'linux':
            os.system("python3 linux.py")
        # This will happen probably if the client is using a different shell in a particular os.
        else:
            with open("README.md", 'r') as f:
                print(f.read())
                from time import sleep
                print("exiting after 20 seconds")
                sleep(20)
    except (KeyboardInterrupt, EOFError):
        exit("\nEXITED")


if __name__ == '__main__':
    main()
#!/bin/bash Run this script if you are unsure whether which script to run. Refere to README.md for further information. # Since the os.system commands for each operating system is different. # This will happen probably if the client is using a different shell in a particular os.