Skip to content

Commit ad39c44

Browse files
committed
Fix cyclic import.
1 parent 10838bd commit ad39c44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/messages.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import webbrowser
1111
from pprint import pprint
1212

13-
from . import util, opanel
13+
from . import util
1414

1515
# Key is window id.
1616
# Value is a dictionary: {
@@ -363,6 +363,8 @@ def _scroll_build_panel(window, message):
363363
"""If the build output panel is open, scroll the output to the message
364364
selected."""
365365
if 'output_panel_region' in message:
366+
# Defer cyclic import.
367+
from . import opanel
366368
view = window.find_output_panel(opanel.PANEL_NAME)
367369
if view:
368370
view.sel().clear()

0 commit comments

Comments
 (0)