[python] fix fallback PAPARAZZI_SRC in examples

This commit is contained in:
Felix Ruess
2015-12-21 11:30:28 +01:00
parent 12bd529071
commit 8c8b05d8db
2 changed files with 3 additions and 2 deletions
@@ -7,7 +7,7 @@ from os import path, getenv
# if PAPARAZZI_SRC not set, then assume the tree containing this
# file is a reasonable substitute
PPRZ_SRC = getenv("PAPARAZZI_SRC", path.normpath(path.join(path.dirname(path.abspath(__file__)), '../../../../')))
PPRZ_SRC = getenv("PAPARAZZI_SRC", path.normpath(path.join(path.dirname(path.abspath(__file__)), '../../../')))
sys.path.append(PPRZ_SRC + "/sw/lib/python")
from ivy_msg_interface import IvyMessagesInterface
@@ -17,6 +17,7 @@ from settings_xml_parse import PaparazziACSettings
from math import radians
from time import sleep
class Guidance(object):
def __init__(self, ac_id, verbose=False):
self.ac_id = ac_id
@@ -7,7 +7,7 @@ from os import path, getenv
# if PAPARAZZI_SRC not set, then assume the tree containing this
# file is a reasonable substitute
PPRZ_SRC = getenv("PAPARAZZI_SRC", path.normpath(path.join(path.dirname(path.abspath(__file__)), '../../../../')))
PPRZ_SRC = getenv("PAPARAZZI_SRC", path.normpath(path.join(path.dirname(path.abspath(__file__)), '../../../')))
sys.path.append(PPRZ_SRC + "/sw/lib/python")
from ivy_msg_interface import IvyMessagesInterface