anchor.diff:    _LoadedModules.Clear;
   end;
   
  +
  +procedure Py_SetSysPath(const Dirs: array of string; DoAdd: boolean);
  +var
  +  Str, Sign: string;
  +  i: Integer;
  +begin
  +  Str:= '';
  +  for i:= 0 to Length(Dirs)-1 do
  +    Str:= Str + 'r"' + Dirs[i] + '",';
  +  if DoAdd then
  +    Sign:= '+='
  +  else
  +    Sign:= '=';
  +  Str:= Format('sys.path %s [%s]', [Sign, Str]);
  +
  +  _Exec(Str+';print("Python %d.%d"%sys.version_info[:2])');
  +end;
  +
  +
   initialization
   
     _LoadedLocals:= TStringList.Create;
  
positive.code: 
    if not _LoadedModuleCudatext then
    begin
      with GetPythonEngine do
        ExecString('import cudatext');
      _LoadedModuleCudatext:= true;
    end;
  
  
negative.code: 
  procedure _ImportCommand(const AObject, AModule: string);
  begin
    _Exec(Format('import %s;%s=%s.Command()', [AModule, AObject, AModule]));
  end;
  
  function Py_RunPlugin_Command(const AModule, AMethod: string;
  