eracuni/data.py
def gecko_path() -> str:
        """
        Return path of geckodriver binary, OS dependent
        """
        my_system = platform.system()
        my_machine = platform.machine()
        if my_system == 'Linux' and my_machine == 'x86_64':
            # Linux PC
            exe_path = r'bin/linux64/geckodriver'
        elif my_system == 'Linux' and my_machine == 'armv7l':
            # Linux Raspberry Pi
            exe_path = r'bin/arm7hf/geckodriver'
        elif my_system == "Windows":
            # Windows
            exe_path = r'bin/win64/geckodriver.exe'
        elif my_system == "Darwin":
            # Mac
            # Notarization Workaround:
            # https://firefox-source-docs.mozilla.org/testing/geckodriver/Notarization.html
            exe_path = r'bin/macos/geckodriver'
        else:
            # No idea
            print(f"Unknown OS: {my_system}/{my_machine}", file=sys.stderr)
            sys.exit(1)

        return exe_path

        Return path of geckodriver binary, OS dependent
        
Return path of geckodriver binary, OS dependent
Return path of geckodriver binary OS dependent
def gecko_path() -> str:
        my_system = platform.system()
        my_machine = platform.machine()
        if my_system == 'Linux' and my_machine == 'x86_64':
            exe_path = r'bin/linux64/geckodriver'
        elif my_system == 'Linux' and my_machine == 'armv7l':
            exe_path = r'bin/arm7hf/geckodriver'
        elif my_system == "Windows":
            exe_path = r'bin/win64/geckodriver.exe'
        elif my_system == "Darwin":
            exe_path = r'bin/macos/geckodriver'
        else:
            print(f"Unknown OS: {my_system}/{my_machine}", file=sys.stderr)
            sys.exit(1)
        return exe_path
def gecko_path ( ) -> str : my_system = platform . system ( ) my_machine = platform . machine ( ) if my_system == 'Linux' and my_machine == 'x86_64' : exe_path = r'bin/linux64/geckodriver' elif my_system == 'Linux' and my_machine == 'armv7l' : exe_path = r'bin/arm7hf/geckodriver' elif my_system == "Windows" : exe_path = r'bin/win64/geckodriver.exe' elif my_system == "Darwin" : exe_path = r'bin/macos/geckodriver' else : print ( f"Unknown OS: {my_system}/{my_machine}" , file = sys . stderr ) sys . exit ( 1 ) return exe_path
Return path of geckodriver binary, OS dependent
Return path of geckodriver binary OS dependent
"""
        Return path of geckodriver binary, OS dependent
        """ # Linux PC # Linux Raspberry Pi # Windows # Mac # Notarization Workaround: # https://firefox-source-docs.mozilla.org/testing/geckodriver/Notarization.html # No idea