From 1a533a2a230b137ba636d0997f074447e13fff2f Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 15 Sep 2020 14:50:01 -0400 Subject: [PATCH] move an optional import for awxkit I'm not sure that this function is actually in use anywhere anymore, but it shouldn't be a top-level import because it represents an optional dependency. --- awxkit/awxkit/yaml_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awxkit/awxkit/yaml_file.py b/awxkit/awxkit/yaml_file.py index 34f186f4a0..750ee3fbb1 100644 --- a/awxkit/awxkit/yaml_file.py +++ b/awxkit/awxkit/yaml_file.py @@ -2,7 +2,6 @@ import os import yaml import glob import logging -from py.path import local log = logging.getLogger(__name__) @@ -82,6 +81,7 @@ def load_file(filename): - "{random_uuid}" random_thing: "{random_string:24}" """ + from py.path import local if filename is None: this_file = os.path.abspath(__file__) path = local(this_file).new(basename='../data.yaml')