diff options
author | Fabien Poussin <fabien.poussin@gmail.com> | 2017-05-11 14:40:18 +0200 |
---|---|---|
committer | Fabien Poussin <fabien.poussin@gmail.com> | 2017-05-11 14:40:18 +0200 |
commit | a5c3ddb053bde39e266660770ba575c6e325b658 (patch) | |
tree | 160cdc3757f07ee6f91389f3ab70635fce39302a /tools | |
parent | 97cf275914d70ee6bd3d3aaf9d30b32c13127f6f (diff) | |
download | ChibiOS-Contrib-a5c3ddb053bde39e266660770ba575c6e325b658.tar.gz ChibiOS-Contrib-a5c3ddb053bde39e266660770ba575c6e325b658.tar.bz2 ChibiOS-Contrib-a5c3ddb053bde39e266660770ba575c6e325b658.zip |
mx2board fix
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mx2board.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mx2board.py b/tools/mx2board.py index 8b0bba2..16d1ecf 100644 --- a/tools/mx2board.py +++ b/tools/mx2board.py @@ -6,7 +6,7 @@ __version__ = '0.3' from xml.etree import ElementTree as etree from jinja2 import Template -from os.path import expanduser, sep +from os.path import expanduser, sep, dirname from argparse import ArgumentParser import re import pprint @@ -328,7 +328,7 @@ if __name__ == '__main__': defines = gen_defines(proj) ports = gen_ports(gpio, proj) - with open('board_gpio.tpl', 'r') as tpl_file: + with open(dirname(__file__) + '/board_gpio.tpl', 'r') as tpl_file: tpl = tpl_file.read() template = Template(tpl) |