Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

popen causing EventGhost to lock up

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
jbworks
Posts: 3
Joined: Tue Sep 06, 2011 11:16 pm

popen causing EventGhost to lock up

Post by jbworks »

First off, I know nothing about python so please accept my apologies if I'm missing something stupid.

Why does this script cause EventGhost to crash?

import os
os.system("taskkill /im squeezeplay.exe /f")
os.popen('"C:\Program Files\Squeezebox\SqueezePlay\squeezeplay.exe"')

The script does works except for eventghost locks up as soon as it is done running.

any suggestions would be greatly appreciated
eatmeimadanish
Experienced User
Posts: 118
Joined: Thu Oct 01, 2009 5:11 pm

Re: popen causing EventGhost to lock up

Post by eatmeimadanish »

Do not use OS. Instead use

import subprocess
subprocess.popen("command line")
Post Reply