mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-22 09:33:07 +00:00
Update discordRichPresencePlex.py
This commit is contained in:
parent
2a270165db
commit
e58a39b483
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class discordRichPresence:
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
self.child.log("Opening Discord IPC Pipe")
|
self.child.log("Opening Discord IPC Pipe")
|
||||||
emptyProcessFilePath = tempfile.gettempdir() + "\\discordRichPresencePlex-emptyProcess.py"
|
emptyProcessFilePath = tempfile.gettempdir() + ("/" if isLinux else "\\") + "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 time\n\ntry:\n\twhile (True):\n\t\ttime.sleep(3600)\nexcept:\n\tpass")
|
emptyProcessFile.write("import time\n\ntry:\n\twhile (True):\n\t\ttime.sleep(3600)\nexcept:\n\tpass")
|
||||||
|
|
Loading…
Reference in a new issue