mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
c43b26d787
6 files changed
+37
-6
No files matched your search
@@ -19,6 +19,10 @@ import os
|
||||
import sys
|
||||
import struct
|
||||
import platform
|
||||
import faulthandler
|
||||
|
||||
# Display a traceback in case of segfault crash. Usefull when frozen
|
||||
faulthandler.enable()
|
||||
|
||||
try:
|
||||
import raven
|
||||
|
||||
@@ -74,7 +74,11 @@ class Qemu(BaseManager):
|
||||
# add specific locations on Mac OS X regardless of what's in $PATH
|
||||
paths.extend(["/usr/local/bin", "/opt/local/bin"])
|
||||
if hasattr(sys, "frozen"):
|
||||
paths.append(os.path.abspath(os.path.join(os.getcwd(), "../../../qemu/bin/")))
|
||||
try:
|
||||
paths.append(os.path.abspath(os.path.join(os.getcwd(), "../../../qemu/bin/")))
|
||||
# If the user run the server by hand from outside
|
||||
except FileNotFoundError:
|
||||
paths.append(["/Applications/GNS3.app/Contents/Resources/qemu/bin"])
|
||||
for path in paths:
|
||||
try:
|
||||
for f in os.listdir(path):
|
||||
|
||||
Reference in new issue
Block a user