Skip to content

Commit

Permalink
removed duplicate code for ironpython agent loading libraries (Empire…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cx01N authored Jul 20, 2024
1 parent 31f6d8f commit 872be88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Fixed

- Removed duplicate code for ironpython agent for loading path resetting (@Cx01N)
- Fixed issue of Sharpire taskings not getting assigned correct id (@Cx01N)

## [5.11.0] - 2024-07-14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ public static void Agent(string PyCode)
sysScope.meta_path.append(importer);
sysScope.path.append(importer);

// Clear search paths (if they exist) and add our library
sysScope.path.clear();
sysScope.meta_path.append(importer);
sysScope.path.append(importer);

//execute ironpython code
var script = engine.CreateScriptSourceFromString(PyCode, SourceCodeKind.Statements);
script.Execute();
Expand Down

0 comments on commit 872be88

Please sign in to comment.