Added on-demand object code compilation and loader

This commit is contained in:
Mark Qvist
2025-02-23 14:45:24 +01:00
parent e8f2bd9b0c
commit 5fcdd17665
5 changed files with 34 additions and 2 deletions
+2
View File
@@ -484,6 +484,8 @@ class Reticulum:
if v == False:
Reticulum.__use_implicit_proof = False
if RNS.compiled: RNS.log("Reticulum running in compiled mode", RNS.LOG_DEBUG)
else: RNS.log("Reticulum running in interpreted mode", RNS.LOG_DEBUG)
self.__start_local_interface()
if self.is_shared_instance or self.is_standalone_instance:
+1 -1
View File
@@ -22,7 +22,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import RNS
from CRNS import RNS
import argparse
import threading
import time
+1 -1
View File
@@ -22,7 +22,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import RNS
from CRNS import RNS
import argparse
import time
+4
View File
@@ -49,6 +49,10 @@ pyc_modules = glob.glob(os.path.dirname(__file__)+"/*.pyc")
modules = py_modules+pyc_modules
__all__ = list(set([os.path.basename(f).replace(".pyc", "").replace(".py", "") for f in modules if not (f.endswith("__init__.py") or f.endswith("__init__.pyc"))]))
import importlib
if importlib.util.find_spec("cython"): import cython; compiled = cython.compiled
else: compiled = False
LOG_CRITICAL = 0
LOG_ERROR = 1
LOG_WARNING = 2