File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -5419,12 +5419,11 @@ procedure TPyDelphiWrapper.Initialize;
5419
5419
with TPythonType(fHelperClassRegister.Objects[i]) do
5420
5420
if not Initialized then Initialize;
5421
5421
// Initialize module
5422
- if Assigned(FModule) then begin
5422
+ if Assigned(FModule) then
5423
+ begin
5424
+ CreateModuleFunctions;
5423
5425
if Module .Initialized then
5424
- begin
5425
- CreateModuleFunctions;
5426
- CreateModuleVars;
5427
- end
5426
+ CreateModuleVars
5428
5427
else
5429
5428
Module .AddClient( Self );
5430
5429
end ;
@@ -5433,7 +5432,6 @@ procedure TPyDelphiWrapper.Initialize;
5433
5432
procedure TPyDelphiWrapper.ModuleReady (Sender : TObject);
5434
5433
begin
5435
5434
inherited ;
5436
- CreateModuleFunctions;
5437
5435
CreateModuleVars;
5438
5436
end ;
5439
5437
@@ -5542,13 +5540,13 @@ procedure TPyDelphiWrapper.SetModule(const Value: TPythonModule);
5542
5540
TPythonType(fHelperClassRegister.Objects[i]).Module := Value ;
5543
5541
if Assigned(FModule) then
5544
5542
if Initialized and (ComponentState * [csDesigning, csLoading] = []) then
5543
+ begin
5544
+ CreateModuleFunctions;
5545
5545
if FModule.Initialized then
5546
- begin
5547
- CreateModuleFunctions;
5548
- CreateModuleVars;
5549
- end
5546
+ CreateModuleVars
5550
5547
else
5551
5548
FModule.AddClient(Self);
5549
+ end ;
5552
5550
end ;
5553
5551
end ;
5554
5552
You can’t perform that action at this time.
0 commit comments