Skip to content

Commit

Permalink
don't import docker at module level so cli can run in non-dev
Browse files Browse the repository at this point in the history
environment
  • Loading branch information
lbjay committed Oct 19, 2017
1 parent fe66fc2 commit 25b2ee0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion harvest_cli/dev.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

import click
from time import sleep
import docker as dockerpy
from subprocess import call
from os.path import join, dirname

Expand All @@ -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()
Expand Down

0 comments on commit 25b2ee0

Please sign in to comment.