File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 36
36
from .actions import export_csv
37
37
from .actions import fileops
38
38
from .actions import updates
39
+ try :
40
+ from .gui import GUI_PATCHED # noqa: F401
41
+ except ImportError :
42
+ # We forgot to patch the GUI, which will cause issues,
43
+ # so raise a helpful error that points us to what we need to do.
44
+ raise RuntimeError ("GUI has not been patched. Please run tools/gui_patch.py" )
39
45
from .generic_dialogs import errormsg , yesno , infomsg
40
46
from .app .custom_app import debug , error , get_log_file
41
47
from .controls import custom_statusbar
Original file line number Diff line number Diff line change 10
10
# Add collapsible pane replacement
11
11
text = re .sub (
12
12
r'^((?:import|from)(?! \.controls\.collapsible_pane).*?)(\r?\n){2}' ,
13
- r'\1\2from .controls.collapsible_pane import CollapsiblePane\2\2' ,
13
+ r'\1\2from .controls.collapsible_pane import CollapsiblePane\2\2GUI_PATCHED = True\2\ 2' ,
14
14
text ,
15
15
flags = re .M
16
16
)
You can’t perform that action at this time.
0 commit comments