[python] fix settings path

This commit is contained in:
Felix Ruess
2014-11-27 14:35:18 +01:00
parent 1120d8d02a
commit 321c583c5d
+2 -2
View File
@@ -31,8 +31,8 @@ class PaparazziACSettings:
# save AC name for reference
self.name = ac_node[0].attrib['name']
# get settings.xml file path from var/<ac_name> directory
settings_xml_path = os.path.join(paparazzi_home, 'var/' + self.name + '/settings.xml')
# get settings.xml file path from var/aircrafts/<ac_name> directory
settings_xml_path = os.path.join(paparazzi_home, 'var/aircrafts/' + self.name + '/settings.xml')
if not os.path.isfile(settings_xml_path):
print("Could not find %s, did you build it?" % settings_xml_path)