From 2059ea6f9524d68b654ca8cb876db84620f3cd03 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Thu, 12 Sep 2013 00:44:14 -0500 Subject: move "import crystal" in labels.py until needed Otherwise there's a circular import. This circular import is going away once crystal.py is fixed up. --- pokemontools/labels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemontools/labels.py b/pokemontools/labels.py index 1509ae6..8fefd2c 100644 --- a/pokemontools/labels.py +++ b/pokemontools/labels.py @@ -8,7 +8,6 @@ import json import logging import pointers -import crystal class Labels(object): """ @@ -32,6 +31,7 @@ class Labels(object): "Running crystal.scan_for_predefined_labels to create \"{0}\". Trying.." .format(Labels.filename) ) + import crystal crystal.scan_for_predefined_labels() self.labels = json.read(open(self.path, "r").read()) -- cgit v1.2.3