Remove auto-restart from unoStart because its broken
This commit is contained in:
parent
07f2f6f910
commit
7a3b9a7a3c
10
main.py
10
main.py
|
@ -57,15 +57,7 @@ def unoCheck(): # Check if unoserver even exists
|
||||||
|
|
||||||
def unoStart():
|
def unoStart():
|
||||||
unoserverPath = unoCheck()
|
unoserverPath = unoCheck()
|
||||||
if unoserverPath:
|
subprocess.Popen(args=[unoserverPath, "--daemon"])
|
||||||
while True:
|
|
||||||
process = subprocess.Popen(args=[unoserverPath, "--daemon"])
|
|
||||||
retval = process.wait()
|
|
||||||
if retval == 0:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
|
||||||
else:
|
|
||||||
return
|
|
||||||
|
|
||||||
async def unoConvertDocument(sourceDocumentPath, sourceDocumentName):
|
async def unoConvertDocument(sourceDocumentPath, sourceDocumentName):
|
||||||
unoconvertPath = shutil.which("unoconvert")
|
unoconvertPath = shutil.which("unoconvert")
|
||||||
|
|
Loading…
Reference in New Issue