Exemplo n.º 1
0
 def _sch_img_repr(self):
     outfolder = os.path.join(INSTANCE_CACHE, "gsymlib")
     self._sch_img_repr_fname = self.source + ".png"
     self._sch_img_repr_path = os.path.join(outfolder, self._sch_img_repr_fname)
     if not os.path.exists(outfolder):
         os.makedirs(outfolder)
     if os.path.exists(self._sch_img_repr_path):
         if get_file_mtime(self._sch_img_repr_path) > get_file_mtime(self.schematic_path):  # noqa
             return
     if MAKE_GSYMLIB_IMG_CACHE:
         conv_gsch2png(self.schematic_path, outfolder, include_extension=True)
Exemplo n.º 2
0
 def _generate_img_repr(self):
     outfolder = os.path.join(INSTANCE_CACHE, "gsymlib")
     self._img_repr_fname = os.path.splitext(self.fname)[0] + ".png"
     self._img_repr_path = os.path.join(outfolder, self._img_repr_fname)
     if not os.path.exists(outfolder):
         os.makedirs(outfolder)
     if os.path.exists(self._img_repr_path):
         if get_file_mtime(self._img_repr_path) > get_file_mtime(self.fpath):  # noqa
             return
     if MAKE_GSYMLIB_IMG_CACHE:
         conv_gsch2png(self.fpath, outfolder)
Exemplo n.º 3
0
 def _generate_img_repr(self):
     outfolder = os.path.join(INSTANCE_CACHE, 'gsymlib')
     self._img_repr_fname = os.path.splitext(self.fname)[0] + '.png'
     self._img_repr_path = os.path.join(outfolder, self._img_repr_fname)
     if not os.path.exists(outfolder):
         os.makedirs(outfolder)
     if os.path.exists(self._img_repr_path):
         if get_file_mtime(self._img_repr_path) > get_file_mtime(
                 self.fpath):  # noqa
             return
     if MAKE_GSYMLIB_IMG_CACHE:
         conv_gsch2png(self.fpath, outfolder)
Exemplo n.º 4
0
 def _sch_img_repr(self):
     outfolder = os.path.join(INSTANCE_CACHE, 'gsymlib')
     self._sch_img_repr_fname = self.source + '.png'
     self._sch_img_repr_path = os.path.join(outfolder,
                                            self._sch_img_repr_fname)
     if not os.path.exists(outfolder):
         os.makedirs(outfolder)
     if os.path.exists(self._sch_img_repr_path):
         if get_file_mtime(self._sch_img_repr_path) > get_file_mtime(
                 self.schematic_path):  # noqa
             return
     if MAKE_GSYMLIB_IMG_CACHE:
         conv_gsch2png(self.schematic_path,
                       outfolder,
                       include_extension=True)