summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-12 00:44:14 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-12 00:44:14 -0500
commit2059ea6f9524d68b654ca8cb876db84620f3cd03 (patch)
treea62478c9c6c90d671d63a60a7a804fb1aef4b36e
parent7cb38df60b1f3ccb76823c799549e3fbea4ab59f (diff)
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.
-rw-r--r--pokemontools/labels.py2
1 files changed, 1 insertions, 1 deletions
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())