Skip to content

Commit

Permalink
generator/mavgen.py: honour MDEF from environment in dynamic generation
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jan 13, 2022
1 parent 8c72af3 commit 2655822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/mavgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def __init__(self, output, wire_protocol=DEFAULT_WIRE_PROTOCOL, language=DEFAULT
def mavgen_python_dialect(dialect, wire_protocol):
'''generate the python code on the fly for a MAVLink dialect'''
dialects = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'dialects')
mdef = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'message_definitions')
mdef = os.getenv("MDEF", default=os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'message_definitions'))
if wire_protocol == mavparse.PROTOCOL_0_9:
py = os.path.join(dialects, 'v09', dialect + '.py')
xml = os.path.join(dialects, 'v09', dialect + '.xml')
Expand Down

0 comments on commit 2655822

Please sign in to comment.