This commit is contained in:
Бондарев Иван 2020-01-12 14:25:53 +01:00
parent 7dbf6197cb
commit dac1a87ff7

View file

@ -932,10 +932,13 @@ namespace PascalABCCompiler.NetHelper
{
try
{
if (curr_inited_assm_path != null)
{
Assembly assm = null;
string path = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(curr_inited_assm_path), args.Name.Substring(0, args.Name.IndexOf(",")) + ".dll");
if (!System.IO.File.Exists(path))
path = System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), args.Name.Substring(0, args.Name.IndexOf(",")) + ".dll");
if (System.IO.File.Exists(path))
assm = LoadAssembly(path);
curr_inited_assm_path = null;