mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Add path lookup directory for Qemu on OSX.
This commit is contained in:
parent
b88abb7c91
commit
e261263aab
@ -628,6 +628,8 @@ class Qemu(IModule):
|
||||
paths.append(os.path.join(os.environ["PROGRAMFILES(X86)"], "qemu"))
|
||||
if "PROGRAMFILES" in os.environ and os.path.exists(os.environ["PROGRAMFILES"]):
|
||||
paths.append(os.path.join(os.environ["PROGRAMFILES"], "qemu"))
|
||||
elif sys.platform.startswith("darwin"):
|
||||
paths.append(os.path.join(os.getcwd(), "../Resources/Qemu/bin/"))
|
||||
for path in paths:
|
||||
try:
|
||||
for f in os.listdir(path):
|
||||
|
@ -13,10 +13,10 @@ File: <input type="file" name="file" />
|
||||
</form>
|
||||
{%if items%}
|
||||
<h3>Files on {{host}}</h3>
|
||||
<ul>
|
||||
<ol>
|
||||
{%for item in items%}
|
||||
<li>{{path}}/{{item}}</a></li>
|
||||
{%end%}
|
||||
{%end%}
|
||||
</ul>
|
||||
</ol>
|
||||
</body>
|
Loading…
Reference in New Issue
Block a user