mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
[python] fix fallback PAPARAZZI_SRC in examples
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user