Update discordRichPresencePlex.py

This commit is contained in:
Phin 2019-01-30 22:33:18 +05:30
parent 2a270165db
commit e58a39b483

View file

@ -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")