Exemple #1
0
 def get_exif(self, name):
     exif_info = {}
     self.START_OPERATION('get_exif')
     pcf = None
     try:
         pcf = PhotoCardFile(self, name)
         exif_info = exif.process_file(pcf)
     finally:
         if pcf is not None:
             pcf.close()
         self.END_OPERATION('get_exif')
         return exif_info
Exemple #2
0
 def get_exif(self, name):
     exif_info = {}
     self.START_OPERATION('get_exif')
     pcf = None
     try:
         pcf = PhotoCardFile(self, name)
         exif_info = exif.process_file(pcf)
     finally:    
         if pcf is not None:
             pcf.close()
         self.END_OPERATION('get_exif')
         return exif_info
Exemple #3
0
    def get_exif_path(self, name):
        exif_info = {}
        self.START_OPERATION('get_exif_path')
        self.save_wd()
        try:
            path_list = name.split('/')[:-1]
            filename = name.split('/')[-1]

            for p in path_list:
                self.cd(p, False)

            pcf = PhotoCardFile(self, filename)
            exif_info = exif.process_file(pcf)

        finally:
            self.restore_wd(False)
            pcf.close()
            self.END_OPERATION('get_exif_path')
            return exif_info
Exemple #4
0
    def get_exif_path(self, name):
        exif_info = {}
        self.START_OPERATION('get_exif_path')
        self.save_wd()
        try:
            path_list = name.split('/')[:-1]
            filename = name.split('/')[-1]

            for p in path_list:
                self.cd(p, False)

            pcf = PhotoCardFile(self, filename)
            exif_info = exif.process_file(pcf)

        finally:    
            self.restore_wd(False)
            pcf.close()
            self.END_OPERATION('get_exif_path')
            return exif_info