mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 23:43:48 +02:00
Fix qemu binary lookup in frozen OSX application
https://github.com/GNS3/gns3-gui/issues/496
This commit is contained in:
parent
33d6fbde21
commit
dfe95cce63
@ -75,7 +75,8 @@ class Qemu(BaseManager):
|
|||||||
paths.update(["/usr/bin", "/usr/local/bin", "/opt/local/bin"])
|
paths.update(["/usr/bin", "/usr/local/bin", "/opt/local/bin"])
|
||||||
if hasattr(sys, "frozen"):
|
if hasattr(sys, "frozen"):
|
||||||
try:
|
try:
|
||||||
paths.add(os.path.abspath(os.path.join(os.getcwd(), "../../../qemu/bin/")))
|
exec_dir = os.path.dirname(os.path.abspath(sys.executable))
|
||||||
|
paths.add(os.path.abspath(os.path.join(exec_dir, "../Resources/qemu/bin/")))
|
||||||
# If the user run the server by hand from outside
|
# If the user run the server by hand from outside
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
paths.add("/Applications/GNS3.app/Contents/Resources/qemu/bin")
|
paths.add("/Applications/GNS3.app/Contents/Resources/qemu/bin")
|
||||||
|
Loading…
Reference in New Issue
Block a user