Issue #1759: Add a more detailed comment in code for previous change.
Change-Id: Ib45c63efa95fb2bac601f435898d2433db242d8e Former-commit-id:a11ef45913
[formerly5b9094275d
[formerly 76fd66783565677c99006dd7c2b7628acd61c2a3]] Former-commit-id:5b9094275d
Former-commit-id:3ec84b8f18
This commit is contained in:
parent
7f15e7e7ab
commit
483665612d
1 changed files with 6 additions and 3 deletions
|
@ -92,10 +92,13 @@ public class IscScript extends PythonScript {
|
|||
Object retVal = super.execute(methodName, args);
|
||||
return retVal;
|
||||
} finally {
|
||||
// if we don't ensure these two modifications to the python include
|
||||
// path happen after every execution, site-specific paths can get
|
||||
// stuck if a JepException is thrown by the execute() method.
|
||||
// if we don't run these two commands after execution, site-specific
|
||||
// paths and modules can get stuck in the interpreter's copy of
|
||||
// sys.path or sys.modules if a JepException is thrown by the
|
||||
// execute() method.
|
||||
// the RollbackImporter handles sys.modules
|
||||
jep.eval("rollbackImporter.rollback()");
|
||||
// while this cleans up sys.path
|
||||
removeSiteSpecificInclude(siteId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue