forked from AG_QGIS/Plugin_SN_Plan41
First commit
This commit is contained in:
31
__init__.py
Normal file
31
__init__.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# import debugpy
|
||||
|
||||
# _debugger_started = False
|
||||
|
||||
def classFactory(iface):
|
||||
from .main import Plan41
|
||||
# start_debugger()
|
||||
return Plan41(iface)
|
||||
|
||||
# def start_debugger():
|
||||
# global _debugger_started
|
||||
|
||||
# if _debugger_started:
|
||||
# return # Schon gestartet – nichts tun
|
||||
|
||||
# try:
|
||||
# debugpy.listen(5678)
|
||||
# _debugger_started = True
|
||||
# print("Debugger wartet auf Verbindung...")
|
||||
# except RuntimeError:
|
||||
# print("Debugger läuft bereits – Verbindung wird erwartet...")
|
||||
|
||||
# if debugpy.is_client_connected():
|
||||
# print("Debugger verbunden – Plugin läuft")
|
||||
# else:
|
||||
# try:
|
||||
# debugpy.wait_for_client()
|
||||
# print("Debugger verbunden – Plugin läuft")
|
||||
# except RuntimeError as e:
|
||||
# print(f"Fehler beim Warten auf Debugger: {e}")
|
||||
Reference in New Issue
Block a user