Merge "Issue #2250 fix for Python PathManager not correctly closing" into development
Former-commit-id:51785dc207
[formerly238936fe63
] [formerly71dfb4d01e
[formerly 1c50504201635d54722be811ae27a3a3abe1a976]] Former-commit-id:71dfb4d01e
Former-commit-id:8bd7aa3942
This commit is contained in:
commit
eb6866e7e1
1 changed files with 8 additions and 4 deletions
|
@ -28,6 +28,8 @@
|
|||
# Date Ticket# Engineer Description
|
||||
# ------------ ---------- ----------- --------------------------
|
||||
# 03/12/13 mnash Initial Creation.
|
||||
# 09/25/13 2250 mnash Fix for FileLocker.unlock
|
||||
# not being correctly called
|
||||
#
|
||||
#
|
||||
#
|
||||
|
@ -35,7 +37,7 @@
|
|||
from com.raytheon.uf.common.localization import FileLocker, FileLocker_Type as Type
|
||||
from java.io import File as JavaFile
|
||||
from java.lang import Object
|
||||
|
||||
import jep
|
||||
|
||||
class File(file):
|
||||
|
||||
|
@ -52,7 +54,9 @@ class File(file):
|
|||
super(File, self).__init__(file.getAbsolutePath(), mode)
|
||||
|
||||
def close(self):
|
||||
FileLocker.unlock(self.lockerObject, self.file)
|
||||
return super(File,self).close()
|
||||
array = jep.jarray(1, JavaFile)
|
||||
array[0] = self.file
|
||||
FileLocker.unlock(self.lockerObject, array)
|
||||
return super(File, self).close()
|
||||
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue