|
|
@ -629,8 +629,9 @@ class Qemu(IModule):
|
|
|
|
if "PROGRAMFILES" in os.environ and os.path.exists(os.environ["PROGRAMFILES"]):
|
|
|
|
if "PROGRAMFILES" in os.environ and os.path.exists(os.environ["PROGRAMFILES"]):
|
|
|
|
paths.append(os.path.join(os.environ["PROGRAMFILES"], "qemu"))
|
|
|
|
paths.append(os.path.join(os.environ["PROGRAMFILES"], "qemu"))
|
|
|
|
elif sys.platform.startswith("darwin"):
|
|
|
|
elif sys.platform.startswith("darwin"):
|
|
|
|
# add a specific location on Mac OS X regardless of what's in $PATH
|
|
|
|
# add specific locations on Mac OS X regardless of what's in $PATH
|
|
|
|
paths.append("/usr/local/bin")
|
|
|
|
paths.append("/usr/local/bin")
|
|
|
|
|
|
|
|
paths.append("/opt/local/bin")
|
|
|
|
for path in paths:
|
|
|
|
for path in paths:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
for f in os.listdir(path):
|
|
|
|
for f in os.listdir(path):
|
|
|
|