mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 00:37:37 +08:00
Add some more flexibility to conf and control_panel naming
closes #1055
This commit is contained in:
committed by
Felix Ruess
parent
a94cb4cf31
commit
0add0485a0
@@ -66,8 +66,8 @@ class ConfChooser:
|
||||
|
||||
conf_files = []
|
||||
|
||||
pattern = "conf[._-]*xml*"
|
||||
backup_pattern = "conf[._-]*xml.20[0-9][0-9]-[01][0-9]-[0-3][0-9]_*"
|
||||
pattern = "*conf[._-]*xml"
|
||||
backup_pattern = "*conf[._-]*xml.20[0-9][0-9]-[01][0-9]-[0-3][0-9]_*"
|
||||
excludes = ["%gconf.xml"]
|
||||
|
||||
for path, subdirs, files in os.walk(self.conf_dir):
|
||||
@@ -88,8 +88,8 @@ class ConfChooser:
|
||||
|
||||
controlpanel_files = []
|
||||
|
||||
pattern = "control_panel[._-]*xml*"
|
||||
backup_pattern = "control_panel[._-]*xml.20[0-9][0-9]-[01][0-9]-[0-3][0-9]_*"
|
||||
pattern = "*control_panel[._-]*xml"
|
||||
backup_pattern = "*control_panel[._-]*xml.20[0-9][0-9]-[01][0-9]-[0-3][0-9]_*"
|
||||
excludes = []
|
||||
|
||||
for path, subdirs, files in os.walk(self.conf_dir):
|
||||
|
||||
Reference in New Issue
Block a user