How to use the guiscrcpy.__path__ function in guiscrcpy

To help you get started, we’ve selected a few guiscrcpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github srevinsaju / guiscrcpy / guiscrcpy / __main__.py View on Github external
# panel = Panel(windoww)
    panel = Panel()
    progg = MyAppv()
    window.show()
    splash.hide()
    # windowww.show()
    # windoww.show()
    app.exec_()
    # appo.exec_()
    sys.exit()


if __name__ == "__main__":
    try:
        import guiscrcpy
        patz = list(guiscrcpy.__path__)[0]
        sys.path.append(patz)
        sys.path.append('')
    except ModuleNotFoundError:
        pass
    sys.path.append('')

    launch_main0()
    


def launch_main():
    import guiscrcpy
    patz1 = list(guiscrcpy.__path__)[0]
    sys.path.append(patz1)
    # print("SYS.path ==", sys.path)
    if(platform.system() == "Windows"):
github srevinsaju / guiscrcpy / guiscrcpy / __main__.py View on Github external
def fin(self):
        result = []
        try:
            from guiscrcpy import __path__ as xz
            str1 = xz
            print("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", str1)
        except:
            str1 = []
        for path in os.getenv('PATH').split(":")+str1:
            print("PATH:", path)
            for files in os.listdir(path):
                print("FILE: ", files)
                if "mapper.py" in files:
                    result.append(os.path.join(path, "mapper.py"))
                    break
            else:
                print("Mapper.py not found")
                
        return result