Page 1 of 1

popen causing EventGhost to lock up

Posted: Tue Nov 29, 2011 4:58 pm
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

Re: popen causing EventGhost to lock up

Posted: Mon Jan 23, 2012 10:14 pm
by eatmeimadanish
Do not use OS. Instead use

import subprocess
subprocess.popen("command line")