Skip to content

Commit d4ac70c

Browse files
test
1 parent 2d53712 commit d4ac70c

9 files changed

+37
-32
lines changed

dynamsoft_capture_vision_bundle/core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
__version__ = "4.0.10.8914"
22

3+
import sys
4+
5+
module_name = "runtime_data_dynamsoft"
6+
module = sys.modules.setdefault(module_name, type(sys)(module_name))
7+
38
if __package__ or "." in __name__:
49
from . import _DynamsoftCore
510
else:

src/DynamsoftBarcodeReader_wrap.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16730,10 +16730,10 @@ void
1673016730
(void)md;
1673116731

1673216732
SWIG_InitializeModule(0);
16733-
dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
16734-
if(dataModule)
16735-
Py_INCREF(dataModule);
16736-
Py_AtExit(ModelExit);
16733+
// dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
16734+
// if(dataModule)
16735+
// Py_INCREF(dataModule);
16736+
// Py_AtExit(ModelExit);
1673716737

1673816738

1673916739
#ifdef SWIGPYTHON_BUILTIN

src/DynamsoftCaptureVisionRouter_wrap.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16153,10 +16153,10 @@ void
1615316153
(void)md;
1615416154

1615516155
SWIG_InitializeModule(0);
16156-
dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
16157-
if(dataModule)
16158-
Py_INCREF(dataModule);
16159-
Py_AtExit(ModelExit);
16156+
// dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
16157+
// if(dataModule)
16158+
// Py_INCREF(dataModule);
16159+
// Py_AtExit(ModelExit);
1616016160
#ifdef SWIGPYTHON_BUILTIN
1616116161
swigpyobject = SwigPyObject_TypeOnce();
1616216162

src/DynamsoftCodeParser_wrap.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6380,10 +6380,10 @@ void
63806380
(void)md;
63816381

63826382
SWIG_InitializeModule(0);
6383-
dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
6384-
if(dataModule)
6385-
Py_INCREF(dataModule);
6386-
Py_AtExit(ModelExit);
6383+
// dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
6384+
// if(dataModule)
6385+
// Py_INCREF(dataModule);
6386+
// Py_AtExit(ModelExit);
63876387
#ifdef SWIGPYTHON_BUILTIN
63886388
swigpyobject = SwigPyObject_TypeOnce();
63896389

src/DynamsoftCore_wrap.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19618,10 +19618,10 @@ void
1961819618
(void)md;
1961919619

1962019620
SWIG_InitializeModule(0);
19621-
dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
19622-
if(dataModule)
19623-
Py_INCREF(dataModule);
19624-
Py_AtExit(ModelExit);
19621+
// dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
19622+
// if(dataModule)
19623+
// Py_INCREF(dataModule);
19624+
// Py_AtExit(ModelExit);
1962519625
#ifdef SWIGPYTHON_BUILTIN
1962619626
swigpyobject = SwigPyObject_TypeOnce();
1962719627

src/DynamsoftDocumentNormalizer_wrap.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10865,10 +10865,10 @@ void
1086510865
(void)md;
1086610866

1086710867
SWIG_InitializeModule(0);
10868-
dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
10869-
if(dataModule)
10870-
Py_INCREF(dataModule);
10871-
Py_AtExit(ModelExit);
10868+
// dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
10869+
// if(dataModule)
10870+
// Py_INCREF(dataModule);
10871+
// Py_AtExit(ModelExit);
1087210872
#ifdef SWIGPYTHON_BUILTIN
1087310873
swigpyobject = SwigPyObject_TypeOnce();
1087410874

src/DynamsoftLabelRecognizer_wrap.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10346,10 +10346,10 @@ void
1034610346
(void)md;
1034710347

1034810348
SWIG_InitializeModule(0);
10349-
dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
10350-
if(dataModule)
10351-
Py_INCREF(dataModule);
10352-
Py_AtExit(ModelExit);
10349+
// dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
10350+
// if(dataModule)
10351+
// Py_INCREF(dataModule);
10352+
// Py_AtExit(ModelExit);
1035310353
#ifdef SWIGPYTHON_BUILTIN
1035410354
swigpyobject = SwigPyObject_TypeOnce();
1035510355

src/DynamsoftLicense_wrap.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4973,10 +4973,10 @@ void
49734973
(void)md;
49744974

49754975
SWIG_InitializeModule(0);
4976-
dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
4977-
if(dataModule)
4978-
Py_INCREF(dataModule);
4979-
Py_AtExit(ModelExit);
4976+
// dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
4977+
// if(dataModule)
4978+
// Py_INCREF(dataModule);
4979+
// Py_AtExit(ModelExit);
49804980
#ifdef SWIGPYTHON_BUILTIN
49814981
swigpyobject = SwigPyObject_TypeOnce();
49824982

src/DynamsoftUtility_wrap.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9511,10 +9511,10 @@ void
95119511
(void)md;
95129512

95139513
SWIG_InitializeModule(0);
9514-
dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
9515-
if(dataModule)
9516-
Py_INCREF(dataModule);
9517-
Py_AtExit(ModelExit);
9514+
// dataModule = PyImport_AddModule("runtime_data" DYNAMSOFT_POSTFIX);
9515+
// if(dataModule)
9516+
// Py_INCREF(dataModule);
9517+
// Py_AtExit(ModelExit);
95189518
#ifdef SWIGPYTHON_BUILTIN
95199519
swigpyobject = SwigPyObject_TypeOnce();
95209520

0 commit comments

Comments
 (0)