old_contents: import generic as g
  
  
  class DXFTest(g.unittest.TestCase):
  
      def setUp(self):
          self.drawings = [g.trimesh.load_path(i) for i in g.data['2D_files']]
          self.single = g.np.hstack([i.split() for i in self.drawings])
  
      def test_dxf(self):
          for p in self.single:
              p.vertices /= p.scale
              p.export(file_obj='temp.dxf')
              r = g.trimesh.load('temp.dxf')
              ratio = abs(p.length - r.length) / p.length
              if ratio > .01:
                  g.log.error('perimeter ratio on export wrong! %f %f %f',
                              p.perimeter,
                              r.perimeter,
                              ratio)
                  raise ValueError('perimeter ratio too large')
  
  
  if __name__ == '__main__':
      g.trimesh.util.attach_to_log()
      g.unittest.main()
  
new_contents: import generic as g
  
  
  class DXFTest(g.unittest.TestCase):
  
      def setUp(self):
          self.drawings = [g.trimesh.load_path(i) for i in g.data['2D_files']]
          self.single = g.np.hstack([i.split() for i in self.drawings])
  
      def test_dxf(self):
          for p in self.single:
              p.vertices /= p.scale
              p.export(file_obj='temp.dxf')
              r = g.trimesh.load('temp.dxf')
              ratio = abs(p.length - r.length) / p.length
              if ratio > .01:
                  g.log.error('perimeter ratio on export %s wrong! %f %f %f',
                              p.metadata['file_name'],
                              p.length,
                              r.length,
                              ratio)
                  raise ValueError('perimeter ratio too large')
  
  
  if __name__ == '__main__':
      g.trimesh.util.attach_to_log()
      g.unittest.main()
  
subject: update debug line