-adding root logger handler when no default exists

-fixes to ssh_to_server script for linux
-fixed callback for upload image thread
This commit is contained in:
Nasrullah Taha
2014-10-30 12:10:14 -06:00
parent 4828b3a73b
commit e9850ee962
4 changed files with 17 additions and 10 deletions

View File

@@ -8,9 +8,13 @@ file.
"""
import os
import sys
from PyQt4 import QtCore, QtGui
QtCore.QSettings.setDefaultFormat(QtCore.QSettings.IniFormat)
if sys.platform.startswith('win') or sys.platform.startswith('darwin'):
QtCore.QSettings.setDefaultFormat(QtCore.QSettings.IniFormat)
app = QtGui.QApplication([])
app.setOrganizationName("GNS3")
@@ -36,10 +40,10 @@ def read_cloud_settings():
# For now, just use the first system.
return name, host, private_key, public_key
raise Exception("Could not find any servers")
name, host, private_key, public_key = read_cloud_settings()
name, host, private_key, public_key = read_cloud_settings()
print(name)
print(host)
@@ -53,4 +57,3 @@ os.system('chmod 0600 /tmp/id_rsa')
cmd = 'ssh -i /tmp/id_rsa root@{}'.format(host)
os.system(cmd)