8000 FIX: silence spurious warning on Python 3.11 (closes #263) · larray-project/larray-editor@6ce43ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ce43ed

Browse files
committed
FIX: silence spurious warning on Python 3.11 (closes #263)
1 parent 48b86fb commit 6ce43ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

larray_editor/editor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ def _setup_and_check(self, widget, data, title, readonly, stack_pos=None, add_la
382382
self.arraywidget.model_data.dataChanged.connect(self.update_title)
383383

384384
if qtconsole_available:
385+
# silence a warning on Python 3.11 (see issue #263)
386+
if "PYDEVD_DISABLE_FILE_VALIDATION" not in os.environ:
387+
os.environ["PYDEVD_DISABLE_FILE_VALIDATION"] = "1"
388+
385389
# Create an in-process kernel
386390
kernel_manager = QtInProcessKernelManager()
387391
kernel_manager.start_kernel(show_banner=False)

0 commit comments

Comments
 (0)
0