From 25b2ee0aa91e8004bdf7b8a27df26f5e1fa2522c Mon Sep 17 00:00:00 2001 From: Jay Luker Date: Thu, 19 Oct 2017 14:35:49 -0400 Subject: [PATCH] don't import docker at module level so cli can run in non-dev environment --- harvest_cli/dev.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/harvest_cli/dev.py b/harvest_cli/dev.py index d75c76a..4002dff 100644 --- a/harvest_cli/dev.py +++ b/harvest_cli/dev.py @@ -1,7 +1,6 @@ import click from time import sleep -import docker as dockerpy from subprocess import call from os.path import join, dirname @@ -16,6 +15,9 @@ @cli.group() def dev(): + # put this here so that the docker package is only required if the user + # is executing dev subcommands + import docker as dockerpy pass @dev.command()