Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a293d10

Browse files
committed
Further simplify Unity custom patch
Lay the burden to provide the library name and directory on the user. A.K.A.: Improve portability.
1 parent 05ee55c commit a293d10

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/runtime/pythonengine.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,6 @@ public static void Initialize(bool setSysArgv = true, bool initSigs = false, Shu
171171
Initialize(Enumerable.Empty<string>(), setSysArgv: setSysArgv, initSigs: initSigs, mode);
172172
}
173173

174-
public static void Initialize(IEnumerable<string> args, bool setSysArgv = true, bool initSigs = false, ShutdownMode mode = ShutdownMode.Default)
175-
{
176-
if (!initialized)
177-
{
178-
InitializeLibrary();
179-
Initialize2(args,setSysArgv, initSigs);
180-
}
181-
}
182-
183174
/// <summary>
184175
/// Initialize Method
185176
/// </summary>
@@ -190,7 +181,7 @@ public static void Initialize(IEnumerable<string> args, bool setSysArgv = true,
190181
/// interpreter lock (GIL) to call this method.
191182
/// initSigs can be set to 1 to do default python signal configuration. This will override the way signals are handled by the application.
192183
/// </remarks>
193-
public static void Initialize2(IEnumerable<string> args, bool setSysArgv = true, bool initSigs = false, ShutdownMode mode = ShutdownMode.Default)
184+
public static void Initialize(IEnumerable<string> args, bool setSysArgv = true, bool initSigs = false, ShutdownMode mode = ShutdownMode.Default)
194185
{
195186
if (initialized)
196187
{

0 commit comments

Comments
 (0)