mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 06:54:08 +08:00
Mixers: use os.path.join
This commit is contained in:
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 = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user