summaryrefslogtreecommitdiff
path: root/src/leap/gui/mainwindow.py
diff options
context:
space:
mode:
authorTomas Touceda <chiiph@leap.se>2013-05-10 16:32:48 -0300
committerkali <kali@leap.se>2013-05-11 21:59:59 +0900
commit6c66167ddce1682e88fae0ae106f44befb121c4d (patch)
tree86257174b58f00bc6b7f4fc64eba81322062e4dd /src/leap/gui/mainwindow.py
parent9a1a657593c3ee18d35936a85077ae2f7e51c392 (diff)
Make the import of WindowsLock conditional
Diffstat (limited to 'src/leap/gui/mainwindow.py')
-rw-r--r--src/leap/gui/mainwindow.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index 358b7a41..b3ab56d3 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -38,7 +38,6 @@ from leap.services.eip.eipbootstrapper import EIPBootstrapper
from leap.services.eip.eipconfig import EIPConfig
from leap.services.eip.providerbootstrapper import ProviderBootstrapper
from leap.platform_init import IS_MAC, IS_WIN
-from leap.platform_init.locks import WindowsLock
from leap.platform_init.initializers import init_platform
from leap.services.eip.vpn import VPN
from leap.services.eip.vpnlaunchers import (VPNLauncherException,
@@ -48,6 +47,9 @@ from leap.services.eip.vpnlaunchers import (VPNLauncherException,
from leap.util import __version__ as VERSION
from leap.util.checkerthread import CheckerThread
+if IS_WIN:
+ from leap.platform_init.locks import WindowsLock
+
from ui_mainwindow import Ui_MainWindow
logger = logging.getLogger(__name__)