comparison tincan.py @ 33:cc975bf7a3fa draft header-includes

Fix bug in auto-generated include variables.
author David Barts <n5jrn@me.com>
date Mon, 27 May 2019 18:14:14 -0700
parents 3382799f3905
children 0fb455b46e5f
comparison
equal deleted inserted replaced
32:3382799f3905 33:cc975bf7a3fa
336 self.in_lib = True 336 self.in_lib = True
337 else: 337 else:
338 self.in_lib = False 338 self.in_lib = False
339 equals = raw.find('=') 339 equals = raw.find('=')
340 if equals < 0: 340 if equals < 0:
341 self.vname = os.path.splitext(raw)[0] 341 self.vname = os.path.splitext(os.path.basename(raw))[0]
342 self.fname = raw 342 self.fname = raw
343 else: 343 else:
344 self.vname = raw[:equals] 344 self.vname = raw[:equals]
345 self.fname = raw[equals+1:] 345 self.fname = raw[equals+1:]
346 if self.vname == "": 346 if self.vname == "":