[conf] rename from *.xml.example to *_example.xml

- select_conf: personal conf file is conf_personal.xml
This commit is contained in:
Felix Ruess
2013-09-13 23:56:14 +02:00
parent b2b114c689
commit 80a007f155
9 changed files with 7 additions and 6 deletions
+3 -3
View File
@@ -52,8 +52,8 @@ class ConfChooser:
conf_files = []
pattern = "*conf.xml*"
backup_pattern = "conf.xml.*2[0-9][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):
@@ -147,7 +147,7 @@ class ConfChooser:
self.paparazzi_home = os.getenv("PAPARAZZI_HOME", os.path.dirname(os.path.abspath(__file__)))
self.conf_dir = os.path.join(self.paparazzi_home, "conf")
self.conf_xml = os.path.join(self.conf_dir, "conf.xml")
self.conf_personal_name = "conf.xml.personal"
self.conf_personal_name = "conf_personal.xml"
self.conf_personal = os.path.join(self.conf_dir, self.conf_personal_name)
self.exclude_backups = True