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.
This commit is contained in:
Bryan Bishop
2013-09-12 00:44:14 -05:00
parent 7cb38df60b
commit 2059ea6f95

View File

@@ -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())