mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 10:10:35 +08:00
Mixers: use os.path.join
This commit is contained in:
committed by
Beat Küng
parent
89642a9203
commit
9e045e3b2a
@@ -291,6 +291,7 @@ def generate_mixer_multirotor_header(geom_list, use_normalized_mix=False, use_6d
|
||||
if __name__ == '__main__':
|
||||
import argparse
|
||||
import glob
|
||||
import os
|
||||
|
||||
# Parse arguments
|
||||
parser = argparse.ArgumentParser(
|
||||
@@ -312,7 +313,7 @@ if __name__ == '__main__':
|
||||
if args.files is not None:
|
||||
filenames = args.files
|
||||
else:
|
||||
filenames = glob.glob(args.dir + '/*.toml')
|
||||
filenames = glob.glob(os.path.join(args.dir, '*.toml'))
|
||||
|
||||
# List of geometries
|
||||
geom_list = []
|
||||
|
||||
Reference in New Issue
Block a user