File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
samples/environments/deploy/SimpleDeployable Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -1003,9 +1003,6 @@ object Form1: TForm1
10031003 9D91A0236CEE4C8EE9C26C6EFD1A30C22B4DA6649BDECD48E61FE9B6179B526F
10041004 1F933BFA87BE5814B3FC7CCB2EB7FC945EE7B1B94D33C313DDC0FF071C472B26
10051005 2E1568DD0000000049454E44AE426082}
1006- FileName =
1007- 'D:\dev\projects\pythonenviroments\samples\environments\deploy\Si' +
1008- 'mpleDeployable\environment_variable.png'
10091006 end>
10101007 Align = Client
10111008 Size.Width = 567.000000000000000000
@@ -1619,9 +1616,6 @@ object Form1: TForm1
16191616 138A05218490BC502C082184E48562410821242F140B42082179A158104208C9
16201617 0BC5821042485EF804B7CBA8F413DC723C42C8DC45DA9BDD7B62F8FF0146C780
16211618 7E72660CD10000000049454E44AE426082}
1622- FileName =
1623- 'D:\dev\projects\pythonenviroments\samples\environments\deploy\Si' +
1624- 'mpleDeployable\enable_python.png'
16251619 end>
16261620 Align = Client
16271621 Size.Width = 567.000000000000000000
@@ -2166,9 +2160,6 @@ object Form1: TForm1
21662160 BADA08997A94B4AB8D1042C8E483C2430821C453E86A238410E229B478082184
21672161 780A8587104288A75078082184780A8587104288A75078082184780A85871042
21682162 888700FF3F3FF5829A5880981F0000000049454E44AE426082}
2169- FileName =
2170- 'D:\dev\projects\pythonenviroments\samples\environments\deploy\Si' +
2171- 'mpleDeployable\scanner_options.png'
21722163 end>
21732164 Align = Client
21742165 Size.Width = 567.000000000000000000
Original file line number Diff line number Diff line change @@ -352,10 +352,10 @@ procedure TPyCustomEnvironment.SetPythonVersion(const Value: string);
352352
353353procedure TPyCustomEnvironment.DoAutoLoad ;
354354begin
355- if FAutoLoad and not (PythonVersion.IsEmpty) then begin
356- if Setup(FPythonVersion ) then
357- Activate (FPythonVersion);
358- end ;
355+ if not (csDesigning in ComponentState) and FAutoLoad
356+ and not (PythonVersion.IsEmpty ) then
357+ if Setup (FPythonVersion) then
358+ Activate(FPythonVersion) ;
359359end ;
360360
361361function TPyCustomEnvironment.Setup (APythonVersion: string): boolean;
You can’t perform that action at this time.
0 commit comments