Merge "Issue #1759: Add a more detailed comment in code for previous change." into omaha_13.4.1

Former-commit-id: fb5d432669 [formerly fb5d432669 [formerly b1c936f0dfb28dc543d7a83b6d0a0233866b98de]]
Former-commit-id: 0ae8346cfb
Former-commit-id: f65ce6e3e6
This commit is contained in:
Ron Anderson 2013-06-03 07:45:02 -05:00 committed by Gerrit Code Review
commit d01a608015

View file

@ -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);
}
}