Skip to content

Commit 94c3c68

Browse files
committed
Display a silent console message if the kivy-select-boxes
directory does not exist, instead of throwing an exception.
1 parent a15b5c8 commit 94c3c68

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • cefpython/cef3/linux/binaries_64bit

cefpython/cef3/linux/binaries_64bit/kivy_.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,10 @@ def _fix_select_boxes(self, frame):
510510
resources_dir = os.path.join(
511511
os.path.dirname(os.path.abspath(__file__)),
512512
"kivy-select-boxes")
513+
if not os.path.exists(resources_dir):
514+
print("The kivy-select-boxes directory does not exist, " \
515+
"select boxes fix won't be applied.")
516+
return
513517
js_file = os.path.join(resources_dir, "kivy-selectBox.js")
514518
js_content = ""
515519
with open(js_file, "r") as myfile:

0 commit comments

Comments
 (0)