From 6061393bd0576f3d7376c7b74a6b4f34f581cc32 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 25 Jun 2017 07:17:03 +0000 Subject: [PATCH] tools: lazily import paramiko. --- artiq/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/tools.py b/artiq/tools.py index 352647d6b..5624ada2e 100644 --- a/artiq/tools.py +++ b/artiq/tools.py @@ -9,7 +9,6 @@ import string import random import numpy as np -import paramiko from artiq.language.environment import is_experiment from artiq.protocols import pyon @@ -269,6 +268,7 @@ class SSHClient: def get_ssh(self): if self.ssh is None: + import paramiko self.ssh = paramiko.SSHClient() self.ssh.load_system_host_keys() self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())