mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-23 02:34:08 -05:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user