(self, dir: str)
| 47 | return core, file |
| 48 | |
| 49 | def start_discord(self, dir: str) -> None: |
| 50 | update = dir + '\\Update.exe' |
| 51 | executable = dir.split('\\')[-1] + '.exe' |
| 52 | |
| 53 | for file in os.listdir(dir): |
| 54 | if re.search(r'app-+?', file): |
| 55 | app = dir + '\\' + file |
| 56 | if os.path.exists(app + '\\' + 'modules'): |
| 57 | for file in os.listdir(app): |
| 58 | if file == executable: |
| 59 | executable = app + '\\' + executable |
| 60 | subprocess.call([update, '--processStart', executable], |
| 61 | shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |