Mercurial > cgi-bin > hgweb.cgi > tincan
changeset 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 |
files | tincan.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tincan.py Mon May 27 18:05:42 2019 -0700 +++ b/tincan.py Mon May 27 18:14:14 2019 -0700 @@ -338,7 +338,7 @@ self.in_lib = False equals = raw.find('=') if equals < 0: - self.vname = os.path.splitext(raw)[0] + self.vname = os.path.splitext(os.path.basename(raw))[0] self.fname = raw else: self.vname = raw[:equals]