Commit 23d7e3a0 authored by Michele Maris's avatar Michele Maris
Browse files

u

parent 6c790db0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -23,7 +23,9 @@ def discoverKeys(template,kbraeket,verbose=False) :
      except : 
         raise Exception('file ended while scanning end of keyword')
      if verbose : print(i1,i2)
      out.append(template[i1:i2+1])
      kkk=template[i1:i2+1]
      if not kkk in out :
         out.append(kkk)
      i1=i2+1
   return out
   
@@ -108,7 +110,7 @@ class templateFiller:
      if not self.isfilled() :
         raise Exception('Error, not all the keywords are filled')
      #
      tout=template
      tout=self._t
      for ik,k in enumerate(self._k) :
         keyName=self._kfill[ik]
         tout=tout.replace(keyName,self._d[k])