mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-22 01:23:02 +00:00
Update discordRichPresencePlex.py
This commit is contained in:
parent
d4234733f8
commit
56a17786f0
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class discordRichPresence:
|
||||||
emptyProcessFilePath = tempfile.gettempdir() + "\\discordRichPresencePlex-emptyProcess.py"
|
emptyProcessFilePath = tempfile.gettempdir() + "\\discordRichPresencePlex-emptyProcess.py"
|
||||||
if (not os.path.exists(emptyProcessFilePath)):
|
if (not os.path.exists(emptyProcessFilePath)):
|
||||||
with open(emptyProcessFilePath, "w") as emptyProcessFile:
|
with open(emptyProcessFilePath, "w") as emptyProcessFile:
|
||||||
emptyProcessFile.write("import timetry:\twhile (True):\t\ttime.sleep(60)except:\tpass")
|
emptyProcessFile.write("import time\n\ntry:\n\twhile (True):\n\t\ttime.sleep(60)\nexcept:\n\tpass")
|
||||||
self.process = subprocess.Popen(["python3" if isLinux else "pythonw", emptyProcessFilePath])
|
self.process = subprocess.Popen(["python3" if isLinux else "pythonw", emptyProcessFilePath])
|
||||||
self.loop = asyncio.get_event_loop() if isLinux else asyncio.ProactorEventLoop()
|
self.loop = asyncio.get_event_loop() if isLinux else asyncio.ProactorEventLoop()
|
||||||
self.loop.run_until_complete(self.handshake())
|
self.loop.run_until_complete(self.handshake())
|
||||||
|
|
Loading…
Reference in a new issue