mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
patch for windows compatibility: can only open tempfile once
This commit is contained in:
@ -36,11 +36,13 @@ class PBPlist(object):
|
||||
|
||||
def __init__(self, file_path):
|
||||
self.root = None
|
||||
if self.__checkFile(file_path) is True:
|
||||
parser = PBParser(self.file_path)
|
||||
self.root = parser.read()
|
||||
self.string_encoding = parser.string_encoding
|
||||
self.file_type = parser.file_type
|
||||
# don't use __checkFile since we can only open the file once in Windows
|
||||
# if self.__checkFile(file_path) is True:
|
||||
self.file_path = file_path
|
||||
parser = PBParser(self.file_path)
|
||||
self.root = parser.read()
|
||||
self.string_encoding = parser.string_encoding
|
||||
self.file_type = parser.file_type
|
||||
|
||||
def write(self, file_path=None):
|
||||
if file_path is None:
|
||||
|
Reference in New Issue
Block a user